Return to Snippet

Revision: 47593
at June 10, 2011 23:06 by nebojsac


Initial Code
$regex = "([a-z0-9_.-]+)". # name
			"@". # at
			"([a-z0-9.-]+){2,255}". # domain & possibly subdomains
			".". # period
			"([a-z]+){2,10}"; # domain extension 
		$eregi = eregi_replace($regex, '', $email);
		$valid_email = empty($eregi) ? true : false;

Initial URL
tricksbycinger.blogspot.com

Initial Description
Full email validation with regex.

Initial Title
Email Validation PHP Regex

Initial Tags
regex, email, php, validation

Initial Language
PHP