I have been working on splitting emails which in turn seperated by commas. For example, consider below three emails:
"my@.>,"<xyz@abc.com>,mine@abc.com,"my,s"elf"<pqr@abc.com>,"myself"<lmn@abc.com>
The result of splitting should be like:
1) "my@.>,"<xyz@abc.com>
2) "my,s"elf"<pqr@abc.com>
3) "myself"<lmn@abc.com>
4) mine@abc.com
I have tried using split() in java but there were commas(,) in sender name which makes the splitting process tedious. Is there any way to combine those emails in java?
Note: The emails can also contain quotes( " ) in sender name as well.