I'm creating an online emailer that drafts emails and saves them into a mysql database. One of the steps will allow the user to insert multiple email addresses. I have a script that blocks the form from processing if the "to" field doesn't match the regex. Although I have a regex for one email address -
(0-9a-z@0-9a-z.[a-wyz]a-z?)
- I'm having trouble creating a regex that covers multiple emails. The format for multiple emails needs to include commas and a space (", ") between the addresses and no line breaks allowed [\n\r\t].
Any help?