Alteryx Designer Desktop Discussions

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

Cleaning the data

Data_Alter
8 - Asteroid

Dear members,

 

I have some data in a row which is like this

 

||'04. Xyzabc xyzabc$'

 

 

I want it to look like this

 

04. Xyzabc xyzabc

 

 

I think this should be possible through regex but I am not able to make it work. Please can someone help

 

2 REPLIES 2
Luke_C
17 - Castor

Hi @Data_Alter 

 

See below/attached. I'm sure others might have a more elegant solution, but this seems to get the job done.

 

([A-Z_0-9_\s\.]+)

 

Luke_C_0-1623342986151.png

 

Maskell_Rascal
13 - Pulsar

Hi @Data_Alter 

 

This regex code should work for you. You can use this in a formula tool to cleanse the field in question. 

 

 

REGEX_Replace([Field1], '[^\w\s\.]', '')

 

 

Maskell_Rascal_0-1623343688363.png

 

Cheers!

Phil

Labels