Optimized URL regular expression so it wont crash on long URLs.