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

How to remove section of an email address?

richleeb2
8 - Asteroid

 

john.smith@pc.test.com
mike.j.lee@pc.test.com

 

I have a list of email address in the above format.  I want to remove the pc. from all the emails but I don't want this to apply to anything before the @.  So the output for above should be:

 

john.smith@test.com
mike.j.lee@test.com
2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @richleeb2 - you can use the Replace() function to clean up these email addresses. In the Formula tool expression, I've made the target string a little more specific by including the @ sign, just in case you ever get an email where .pc. is part of the name (as you can see in the 3rd, extra example I've included just to demonstrate, this won't be removed):

 

Replace([Email], '@pc.', '@')

 

DataNath_0-1661291660239.png

richleeb2
8 - Asteroid

This worked thanks!!

Labels
Top Solution Authors