3 ms·
Sites like this is great and all, but I wish they included some commonly used regexes. Like a list of 'good' regexs to validate phone numbers, emails and other
by psk 11y ago
Sites like this is great and all, but I wish they included some commonly used regexes. Like a list of 'good' regexs to validate phone numbers, emails and other common stuff.
It would actually be pretty cool to have a site like this except you could add the regex to a list, and then people could upvote the regexe depending on the quality of it.
- psk 11y ago...and I just checked the community link. Way to go :-)
- addandsubtract 11y agoThere's also http://www.regxlib.com/ http://www.regxlib.com/
- deleted 11y ago[deleted]
- ddebernardy 11y agoYou can only validate a zip code, a phone number, an address, or an email address using a regex up to a point. There are too many dispartities from a country to the next for the first three to hope validating anything withhout a bunch of false negatives. Some countries don't have zip codes. For emails, blindly following the RFCs yields a monster (see [1]), and it won't help you if you run into oddball email addresses that are not RFC-compliant but work regardless due to technical implementations (or vice versa). http://regular-expressions.mobi/email.html http://regular-expressions.mobi/email.html