Return to Snippet

Revision: 8808
at October 9, 2008 05:06 by malux


Initial Code
public static function checkEmail(email:String):Boolean {
	var regExEmail:RegExp = new RegExp(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|name|aero|biz|info|mobi|jobs|museum)b/i);

	return regExEmail.test(email);
}

Initial URL

                                

Initial Description

                                

Initial Title
RegEx Control Email

Initial Tags
textmate

Initial Language
Other