Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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