Getting delimiter from a line
Can someone please tell me the best possible way to find the delimiter from a given line (not including the spaces)?
For our convenience we can assume use the email address to split if necessary. So the very next char (except space) after the email can be our delimiter. But there may be cases where the email address is at last and no delimiter are there.
Some examples are:
jon, doe, firstname.lastname@example.org, 996655
email@example.com; doe; ;996655
jon# doe# 996655# firstname.lastname@example.org
jon doe 996655 email@example.com
In ex 4 and 5 above, it should return as no delimiter found.
Any help is appreciated.