I am sifting through a page of text and want to use preg_match on it to find urls that match a profile and capture them.
What is the regex I would use to find "http://domain.com/page/name" with:
"domain" could be "domain1" or "mydomain3"
"page/name" being any string with or without slashes, repeated any number of times
the "http" should also look for "https"
there might be a www or no www
Thank you very much!