I have a textarea field for email addresses and allow separatation by comma, semicolon or new line.
parsing textarea: new line, comma, or semi colon
I use this to normalize line endings:
$email_field = preg_replace("/(\015\012\015\012)|(\015\015)|(\012\012)/","\n",$email_field);
Now i could explode() on "\n' and loop through lines and explode on "," and ";" but I was wondering if it was possible to turn this into a one-liner and have the results put in an array.