static boolean ValidateEmailAddress(str _email) { boolean retval; InteropPermission permission = new InteropPermission(InteropKind::ClrInterop); System.Text.RegularExpressions.Regex re; ; permission.assert(); re = new System.Text.RegularExpressions.Regex( "^([a-zA-Z0-9_'+*$%\^&!\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9:]{2,4})+$" ); return CLRInterop::getAnyTypeForObject(re.IsMatch(_email));
Tuesday, November 25, 2008
Regular Expressions in AX
Subscribe to:
Posts (Atom)