RegularExpressionValidator for multiple emails

前端 未结 3 545
心在旅途
心在旅途 2021-01-07 01:42

I\'m validating a textbox for valid email with this:



        
3条回答
  •  忘掉有多难
    2021-01-07 02:22

    Try the expression below, which works for me:

    ((\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*([,])*)*
    

    The above code is for ,, separating e-mail addresses.

    If you would like to use ; instead of ,, than replace , with ; at the end of the above expression.

提交回复
热议问题