Regex to match URL
From http://stackoverflow.com/questions/13820477/html5-input-tag-validation-for-url