I'm trying to extract an email address from a string. Most of the entries have a similar structure, for example:
From: John Doe Sent:Monday, October 10, 2013 11:59 AM
To: '**xyz123@yahoo.com**'Cc:mno456@comcast.net (the lack of spaces is intentional)
On the other hand, some have a different format, i.e. don't include the Cc:, etc. The goal is to extract the To: email address, i.e. xyz123@yahoo.com in our example.
I've tried using INSTR
and SUBSTR
but have not had much luck. Is there any way to extract this email address using RegEx's, or does anyone have any other ideas.