I have the following regex:
(^|^[^:]+:\/\/|[^\.]+\.)hello\.net
Which seems to work fors most cases such as these:
http://hello.net
https://hello.net
http://www.hello.net
https://www.hello.net
http://domain.hello.net
https://solutions.hello.net
hello.net
www.hello.net
However it still matches this which it should not:
hello.net.domain.com
You can see it here: https://regex101.com/r/fBH112/1
I am basically trying to check if a url is part of hello.net
. so hello.net
and any subdomains such as sub.hello.net
should all match.
it should also match hello.net/bye
. So anything after hello.net is irrelevant.