package{ import flash.display.Sprite; import flash.utils.*; public class Main extends Sprite{ public function Main(){
var sEmail:String = new String("someone@someserver.com"); var reEmail:RegExp = new RegExp("^([\w\-\.]+) ;@(([\w\-]{2,}\.)+[\w\-]{2,3})$"); trace(reEmail.test(sEmail)); } } }
Related Scripts with Example Source Code in same category :