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, email@example.com, 996655
firstname.lastname@example.org; doe; ;996655
jon# doe# 996655# email@example.com
jon doe 996655 firstname.lastname@example.org
In ex 4 and 5 above, it should return as no delimiter found.
Any help is appreciated.