zoukankan      html  css  js  c++  java
  • 检正email的格式

    下面是email正则表达式:
    Ex:
    string pattern = @"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|0-9]+([_][a-z|0-9]+)*)?
                            @[a-z][a-z|0-9|]*\.([a-z][a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";   
       
    System.Text.RegularExpressions.Match match = Regex.Match(txtEmailChecking.Text.Trim(),
                                                                                                    pattern,RegexOptions.IgnoreCase);
       if(match.Success)
        MessageBox.Show("Success","Checking");
       else
        MessageBox.Show("Fail","Checking");

  • 相关阅读:
    django6
    django5
    欧拉回路
    消耗战合集
    小技巧
    (广义)圆方树
    最小割树(Gomory-Hu Tree)
    fhq treap
    注意!!
    急需学习的东西
  • 原文地址:https://www.cnblogs.com/RuiLei/p/394725.html
Copyright © 2011-2022 走看看