I want a regex to find the following types of strings:
where
abc -> abc always remains abc
anything -> it could be any string
tld -> it could be any tld (top-level-domain) like .com
.net
.co.in
.co.uk
etc.
Note: The url must not contain any other thing at the end, means http://anything.abc.tld/xyz is not acceptable.
Note: As the list of tlds is a long list and still there are chances that you forget to include some tlds, I don't want to write each tld in the regex to check for. Instead I would like to have a regex that checks for the following (for tld):
After abc, there is a period (.)
After the period(.) there is atleast one character