We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replace every second instance of a comma with an underscore

bman213
7 - Meteor

Hi all,

 

I am trying to replace every second instance of a comma in a single row with an underscore. So:

 

Nov 17, 2020,Nov 19, 2020,Nov 6, 2020,Nov 13, 2020

 

With:

 

Nov 17, 2020_Nov 19, 2020_Nov 6, 2020_Nov 13, 2020

 

The objective is so I can then parse the different dates to separate columns by splitting at the underscore.

 

Thank you in advance for the help!

 

 

3 REPLIES 3
apathetichell
20 - Arcturus

regex/tokenize extract the dates. edited with a version with datetimeparse to turn into alteryx dates.

Qiu
21 - Polaris
21 - Polaris

@bman213 
I dont know how to replace the every 2nd one, but we can replace the one after 4 digits of Year/

Capture1A.PNG

bman213
7 - Meteor

Thank you!

Labels
Top Solution Authors