We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Searching for an email address within a text field

George_Fischetti
8 - Asteroid

Hi Folks - I'm searching for an email address that is embedded within a free form text field.   I have created a Regex expression but I'm only getting the first part of the address, everything after the the @ symbol doesn't appear.

 

Example:

This is some sample text that has my email gfisch13@msn.com and I'm only getting the gfisch13 part.

 

This is my expression:  (\<\w+\>)@.*

 

I'm new to RegEx and know I'm missing something, I just don't know what.

 

Appreciate any help!

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @George_Fischetti 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1644435774303.png

 

Hope this helps : )

 

George_Fischetti
8 - Asteroid

@atcodedog05 I was way off, wow.   While this seems to work I am getting regular text for records where no email address exists.  Is there a way to eliminate that, If no email is present I'd rather see a blank field.

atcodedog05
22 - Nova
22 - Nova

Hi @George_Fischetti 

 

Here is the updated workflow

 

atcodedog05_0-1644437662294.png

 

Hope this helps : )

 

George_Fischetti
8 - Asteroid

@atcodedog05 this is perfect, can't thank you enough for the guidance!!

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @George_Fischetti 

Cheers and have a nice day!

Labels
Top Solution Authors