The following code is a regular expression which matches any URL that resolves to a domain that begins with "https" and has either a 6 character domain name or a 2 letter alphanumeric area code followed by 6 digits. In this case, it would match URLs that look like "https://www.google.com", "https://www.yahoo.com", or "https://www.msn.com".
^(https?:\/\/)?([\da-z\.-]+\.[a-z\.]{2,6}|[\d\.]+)([\/:?=&#]{1}[\da-z\.-]+)*[\/\?]?$