Return to Snippet

Revision: 5489
at March 12, 2008 01:31 by chrisaiv


Updated 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]");

Revision: 5488
at March 12, 2008 01:28 by chrisaiv


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})+$/;
	trace(emailRgx.test(email));
	return emailRgx.test(email);
}
is_valid_email("[email protected]");

Initial URL

                                

Initial Description

                                

Initial Title
Flash E-mail This Validator

Initial Tags

                                

Initial Language
ActionScript 3