Re: [PHP] Valid email address syntax script?

2005-05-06 Thread Jochem Maas
JM wrote: Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. yes,yes,yes,cheers. the email regexp passes Richard Lynch's email addr (check the archives :-), have fun (sorry if the line wrapping craps out)... ?php /** *

[PHP] Valid email address syntax script?

2005-05-04 Thread JM
Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. -- J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Valid email address syntax script?

2005-05-04 Thread Jason Sweeney
Borrowed with great reverence from http://ca3.php.net/function.mail: $regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{2,})+$'; if (eregi($regex, $email)) return true; else return false; jason sweeney jason.designshift.com JM wrote: Does anyone have a nice email address