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

Removing Punctuation from Email Addresses

raultorres2000
5 - Atom

I have junk email in this email list, and its close to 30,000 emails. About 1,000 plus emails have punctuation by mistake in front. I know I can remove punctuation from an email by using Data Cleansing Tool, but that would also remove '@', which I don't want to remove. Also, some emails have punctuation as part of their regular email in the middle.

 

Example:

?rsmith@gmail.com

-mike.harold@google.com

 

Any ideas?

 

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

How about a formula like this

 

if REGEX_Match(Left([Field1], 1), '[^a-zA-Z_0-9]') then Right([Field1], Length([Field1])-1) else [Field1] endif

 

DavidP_0-1587682377435.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

I might look to see what characters you dislike    

 

Replacechar([email],"'!?,&$)(;:/[]{}#%^*+=\|~<>€£¥",'')

 

 cheers,

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors