Matching an e-mail





3
Date Submitted Thu. Dec. 10th, 2009 3:59 AM
Revision 1 of 1
Beginner Arsen
Tags PHP
Comments 1 comments
Matching an email.

$pattern = '/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/'

preg_match($pattern, $email);
 

Mariusz Wyrozumski

Comments

Comments Thanks.
Sun. Apr. 4th, 2010 8:10 AM    Helper jackoder

Voting

Votes Down