S
Shapper
Hello,
I have a method which receives a contact in one of the following formats:
1 - "(e-mail address removed)"
2 - "Name <[email protected]>" OR "Name<[email protected]>" (Spaces can exist)
If it is in format (1) I do nothing. In case of (2) I need to parse the name and email.
I never know in which format I will get the emails. But it will be one of the two.
How can I do this?
Thank You,
Miguel
I have a method which receives a contact in one of the following formats:
1 - "(e-mail address removed)"
2 - "Name <[email protected]>" OR "Name<[email protected]>" (Spaces can exist)
If it is in format (1) I do nothing. In case of (2) I need to parse the name and email.
I never know in which format I will get the emails. But it will be one of the two.
How can I do this?
Thank You,
Miguel