How to match a comma separated list of emails with regex?

前端 未结 13 1356
一整个雨季
一整个雨季 2020-12-15 07:29

Trying to validate a comma-separated email list in the textbox with asp:RegularExpressionValidator, see below:



        
13条回答
  •  星月不相逢
    2020-12-15 07:45

    The easiest solution would be as following. This will match the string with comma-separated list. Use the following regex in your code.

    Regex: '[^,]+,?'

提交回复
热议问题