in reply to Re: regex to match URLs
in thread regex to match URLs

URI will not do the trick, since it accepts both absolute and relative URIs, and it doesn't do validation.

For example, "www.example.com" is accepted (even though it's not a valid absolute URI), ":80" and "http://:80" are accepted (even though they are not valid URIs).