Re:In search of the perfect URL validation regex
by siliconc0w on Sunday June 22, 2014 @04:43PM
(#7929143)
This is a good lesson why you want to avoid writing your own regexes. Even something simple like an email address can be insane:http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
[ Parent
| on HN ]
Re:In search of the perfect URL validation regex
by baudehlo on Sunday June 22, 2014 @07:36PM
(#7929587)
This always comes up in these discussions and is a terrible counter example. RFC 822 is the format for email messages (ie headers) and not a form you'll ever find email addresses in "in the wild" (eg on web forms).