I have a Regex to match a subdomains of a web page like below
"^https://[^/?]+\\.(sub1|sub2\\.)domain\\.com"
What would be the regex to accept any sub domain of domain.com.
Edit:
My question was incomplete, my regex was to accept only
https:[any number of sub domain s ].sub1domain.com
or
https://[any number of sub domain s ].sub2domain.com
Sorry for posting incomplete question.