What is the regular expression used by codeigniter to validate email addresses? I plan on using the same regex on the javascript part of the form validation, so that the regexes won’t collide, e.g. xy#@spic7.com might pass in the javascript part, but it won’t pass in the php part )
What is the regular expression used by codeigniter to validate email addresses? I plan
Share
You could have looked at the source code yourself in the same amount of time it took to post this question but, either way, this is the method CI uses to validate emails, straight from
system/libraries/Form_validation.php: