Regular Expression for delimited email address

后端 未结 6 468
不知归路
不知归路 2021-01-17 09:20

i am looking for a regular express to validate a list of email addresses like the following

test1@abd.com;test.test@abc.com;test3@test.com

and

6条回答
  •  春和景丽
    2021-01-17 09:59

    I use this:

    ^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25}(($)|( *;+ *$)|( *;+ *(?=[a-zA-Z0-9_\-\.]))))*$
    

    https://regexr.com/3gth7

提交回复
热议问题