Return to Snippet

Revision: 6460
at May 22, 2008 08:33 by Meestercor


Initial Code
	function is_valid_email(email:String):Boolean
	{
		var emailRgx:RegExp = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	///^[a-zA-Z0-9][-._a-zA-Z0-9]*@([a-zA-Z0-9]*.)+[a-zA-Z]{2,6}$/;
		trace(emailRgx.test(email));
		return emailRgx.test(email);
	}
	is_valid_email("[email protected]");

Initial URL

                                

Initial Description

                                

Initial Title
Actionscript email validation

Initial Tags
email, textmate, actionscript, validation

Initial Language
Other