ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Replace every second instance of a comma with an underscore

bman213
メテオール

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件の返信3
apathetichell
アルクトゥルス

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
メテオール

Thank you!

ラベル
トップのソリューション投稿者