robinstOP•

See here for why a regular expression is not enough: http://blog.codinghorror.com/the-problem-with-urls/

1