Simplified and improved the URL regex a bit. http://is.gd/dRaZqR