max中用 .net 判断输入的邮箱地址是否合格。

pattern = "^([0-9a-zA-Z]([-\\.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$";

 

 oo = dotNetclass "System.Text.RegularExpressions.Regex"  





 oo.IsMatch "[email protected]"  pattern  --返回对错

  

2012-05-28

你可能感兴趣的:(.net)