Re: [PHP] Re: Valid email address syntax script?

2005-05-04 Thread Marcus Bointon
On 3 May 2005, at 19:18, Matthew Weier O'Phinney wrote: * Jm [EMAIL PROTECTED]: Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. I use the following regex: preg_match('/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i',

[PHP] Re: Valid email address syntax script?

2005-05-04 Thread Matthew Weier O'Phinney
* Jm [EMAIL PROTECTED]: Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. I use the following regex: preg_match('/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email) I believe I got it out of the PHP Cookbook, by