/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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); }
Comments
