Static Server boolean validateEMail(EMail _eMail)
{
Boolean valid; Boolean xppBool;
System.Boolean netBool;
Str MatchEmailPattern = @”^(([\w-]+\.)+[\w-]+|([a-zA-Z]{1}|[\w-]{2,}))@”+ @”((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.”+ @”([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|”+ @”([a-zA-Z]+[\w-]+\.)+[a-zA-Z]{2,4})$”;
System.Text.RegularExpressions.Match myMatch;
new InteropPermission(InteropKind::ClrInterop).assert();
myMatch = System.Text.RegularExpressions.Regex::MatchnetBool = (_eMail,MatchEmailPattern);
myMatch.get_Success(); xppBool = netBool;
CodeAccessPermission::revertAssert(); Return xppBool;
}
No comments:
Post a Comment