I am trying to filter a list of links to match only those which are only a second level domain
Success:
https://www.thingisawesome.anything
https://thingisawesome.anything
http://www.thingisawesome.anything
http://thingisawesome.anything
http://thingisawesome.anything/
https://www.thingisawesome.anything/
Failure:
http://thingisawesome.ventures/index.html
https://subdomain.geocities.com/
https://www.twitter.com/8288hs98ff
This got me close:
(http)s?(:\/\/)(w*)(\.?)(\w*)(.)(\w*)(\/?)
But it would not reject the ones to fail, only match part of it.