I have a string that is returned from a WebAPI call that looks like this:
(
"[email protected]"
)
As a workaround, I am trying to extract just the email address i.e. [email protected]
I am not sure what the best approach to do this is as I'm extracting the data within the parenthesis and the quotations.
Any pointers (no pun intended) are appreciated.
The easiest way is to use
stringByTrimmingCharactersInSet:
:Harder one involves
NSRegularExpression
.