怎样判断邮件XXX@XXX格式

解决方案 »

  1.   

    Internet 电子邮件地址 [\w-]+@([\w-]+\.)+[\w-]+ http://chs.gotdotnet.com/QuickStart/howto/default.aspx?url=/quickstart/howto/doc/regexcommon.aspx
      

  2.   

    \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
    Internet 电子邮件地址
      

  3.   

    正则表达式..\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
    运用VS.2003中的RegularExpressionValidator
      

  4.   

    dim boolstr as boolean
    dim str as string=输入文本框的值
    boolstr=System.Text.RegularExpressions.Regex.IsMatch(str,"这里填正则表达式")if boolstr=true then
      所填资料符合正则表达式约束
     else
      不符合 
    end if
      

  5.   

    邮件正则表达式:
    \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$