I need to split the string with the separator ">," but this separator is allowed between the "" that correspond to the display name e.g:
""display>, name>," <email@tegg.com>, "<display,> >" <display_a@email.com>";
I need it to be separated like:
[["display>, name>," <email@tegg.com>,] ["<display,> >" <display_a@email.com>"]]
I'm using at this moment this:
aux = Regex.Split(addresses, @"(?<=\>,)");
But this doesnt work when the display name has ">,"
E.g str:
str = "\"Some name>,\" <example@email.com>, \"<display,> >\" <display_a@email.com>'";