Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

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

 

 

Labels