How to write regex and differentiate between a) top level URL and b) for links inside these top level URLs.
For e.g, if the top level url is http://www.example.com/
and other links inside this top folder can be,
http://www.example.com/go
http://www.example.com/contact/
http://www.example.com/links/
I do not know what links are inside the top folder, is there a regex that can select the main one and also all of these sub folders inside the main one.
Thanks.