AnsweredAssumed Answered

Parsing Email addresses out of a string

Question asked by boilinh2o on May 9, 2017
Latest reply on May 16, 2017 by boilinh2o

Hello,

 

I have a field that is populated by a mail archive - call it recieverTO.

 

The content can look like this:

 

Nathan Smith nathan@domain.com,Mark Jones mark@otherdomain.com

 

or this

Nathan Smith nathan@domain.com

 

or this

Nathan Smith nathan@domain.com,mark@otherdomain.com

 

and maybe even this

Nathan Smith nathan@domain.com,mark@otherdomain.com, Terry Brown Terry@browndomain.com

 

I want to grab out the email addresses. Preferably all of them, but failing that at least the first one.

 

I'm guessing that I might need to script this. Maybe looping through and grabbing the first and assigning it to a variable and then the next... Once I have them in variables I can stick them somewhere where I can use them.

 

Any suggestions is appreciated.

 

Mark

Outcomes