Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

RegEx formula help

Brad1
11 - Bolide

What is the RegEx formula to fix this?

 

abc,,,test,,something,,,,blah

 

s/b

 

abc,test,something,blah

 

Need to remove extra commas where ever two or more show up together.

3 REPLIES 3
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Brad1,

 

You will be able to use REGEX_Replace([ColumnName], ',+', ',')  in a formula tool

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan

fmvizcaino
17 - Castor
17 - Castor

Hi @Brad1 ,

 

You need to use the replace method of regex and the following regex expression.

,+

 

 

fmvizcaino_0-1574191269307.png

 

Let me know if that works for you.

Best,

Fernando V.

Brad1
11 - Bolide

Thanks,

 

With this formula:  REGEX_Replace([test], ',{1,}', ',')  

 

I will rule the world.

Labels
Top Solution Authors