Quote Name Space
Using system.text.regularExpressions;
2. Code:
String strinput = "
AAA@163.com ";
String strexp = @ "/ w ([- .] / w ) * @ / w ([-.] / w ) * /. / w ([-.] / w ) *"
// CREATE A New Regex Object.
Regex r = new regex (strexp);
// Find A Single Match in The String.
Match m = r.match (strINput);
IF (M.Success)
{
Messagebox.show ("successful verification!");
}