Update regular expression

Better matches valid URLs from horribly pasted snippets.