We are updating the requirements for Community registration. As of 7/21/21 all users will be required to register a phone number with their My Alteryx accounts. If you have already registered, you will be prompted on your next login to add your phone number.

Alteryx Designer Discussions

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

Cleaning the data

Takkarstar
7 - Meteor

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
13 - Pulsar

Hi @Takkarstar 

 

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
12 - Quasar

Hi @Takkarstar 

 

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