in reply to regex to match URLs

Regexp::Common::URI should do the trick.

Caveats: