Alteryx Designer Desktop Discussions

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

Regex Special Characters

jonathangonzales
8 - Asteroid

I'm pulling in data and loading to a table in our data warehouse. The table will not accept special characters and I am trying to figure out a way to have Alteryx remove/update special characters. With the example below I would like for it to come out as Thai Kitchen.

 

Thai Kitchenâ®

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

@jonathangonzales ,

 

 

How about:

 

REGEX_Replace([Field1], "[^ -~]", '')

 

It will eliminate things not in the ascii range of BLANK to TILDE

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
vizAlter
12 - Quasar

Hi @jonathangonzales — Here we go:

 

 

REGEX_Replace([Field1], "[^a-zA-Z0-9 .-]", ' ')

 

 

^ sign in [ ] in front of given characters will look for other character to remove them.

That means this RegEx will keep a to z, A to Z, 0 to 9, space, decimal, hyphen only

 

vizAlter_0-1600182085332.png

 

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels