Email validation

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;



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: