Jump to content

preg_match


justinwhite

Recommended Posts

This is unfortunately not an easy subject. It's hard, if not impractical, to create a perfect regex for email validation. RFC2822 doesn't help either. It was written with wide support in mind, not simplicity.

 

With that in mind you should choose the one that suits your fancy. For examples:

 

http://fightingforalostcause.net/misc/2006/compare-email-regex.php

or

http://regexlib.com/DisplayPatterns.aspx

Link to comment
https://forums.phpfreaks.com/topic/99762-preg_match/#findComment-510248
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.