My line looks like this:
smtp:jblack@test.com;SMTP:jb@test.com;X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;
I need to return:
smtp:jblack@test.com
SMTP:jb@test.com
X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;
The problem is that half-columns share addresses, as well as part of the X400 address. Can anyone suggest what is the best way to share this?
PS I must mention that the order is different in that it can be:
X400:C=US;A= ;P=Test;O=Exchange;S=Jack;G=Black;;smtp:jblack@test.com;SMTP:jb@test.com
There can be more than 3 addresses, 4, 5 .. 10, etc., including the X500 address, however they all start with SMTP: SMTP: X400 or X500.
Jack black
source
share