You may find URI helpful. Note the regex given in the "PARSING URIs WITH REGEXP" section.
In reply to Re: Regex check Valid URL by GrandFather in thread Regex check Valid URL by hankcoder