I have a form where i can get a list of emails separated by random characters:
(some will use comma, others will use semi-colon or even *). Something like this:
email1@example.com;email2@example.com,email3@example.com*email4@example.com
Is there a way to explode the string with a regular expression?
In most cases, the users will type the same separator but i don’t want to force people with an exclusive one.
Something like this should get you started:
Docs and demo