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
test1@abd.com;test.test@abc.com;test3@test.com;
optional “;” at the end of the list.
thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update
Don’t. Split on the delimiter and validate each one separately. I would also recommend setting a match timeout and/or non-backtracking flag to prevent excessive CPU usage when matching.
Original Answer
From: http://regexlib.com/RETester.aspx?regexp_id=1007