Fixed an error with the regular expression parsing URLs.