Regular Expression for delimited email address

后端 未结 6 465
不知归路
不知归路 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 10:02

    From: http://regexlib.com/RETester.aspx?regexp_id=1007

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

提交回复
热议问题