C # Is why code verifies whether or not email (with regular)

xiaoxiao2021-03-06  78

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!");

}

转载请注明原文地址:https://www.9cbs.com/read-107395.html

New Post(0)