Update regular expression

Better matches valid URLs from oddly pasted snippets.