Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Return only the Email Address String using RegEx Replace

taxguy33
8 - Asteroid

Hello,

 

I am struggling to complete this RegEx Replace expression in a Formula tool. I need the inverse to be returned compared to what is happening right now.

 

Currently, my string is something like "href=\"mailto:Bob.Smith@abc.com\"><span"

 

I'm using a RegEx Replace formula that says:

 

REGEX_replace([Body], "\w+.\w+@abc.com", "") 

and only "href=\"mailto:\"><span" is the result of the formula.

 

I want the exact inverse of that result - Bob.Smith@abc.com to be the only result. 

 

Can someone please provide guidance on how I invert this formula to produce my desired results?

 

Thanks!

2 REPLIES 2

Hi @taxguy33 

 

Is the below what you are looking for? Cheers!

 

christine_assaad_0-1610497629656.png

 

Qiu
21 - Polaris
21 - Polaris

@taxguy33 
Considered some more general cases.

0113-taxguy33.PNG

Labels
Top Solution Authors