uses a more RFC2396 complaint regex pattern

The current regex pattern was tripping on a number of valid URLs, so
this change updates it to use the URI module's regexp class. To maintain
some compatability with the old regex, I have limited the valid urls
accepted by this regex to the http and https schemes.