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.

Regex tool expression for column split

Skarthika
6 - Meteoroid

Hi All,

 

Im looking for an expression in Regex tool to extract values like below. Basically when there is an alphabet occurance there should be a split, again when there is an number there shd be a split and it goes on.

 

inputData    
 123, 234, 345, 2025-04-01, 456, abc, def, ghf, 23, 2025-04-02, ahf, sef, 234    
      
outputC1C2C3C4C5
 123, 234, 345, 2025-04-01, 456abc, def, ghf23, 2025-04-02, ahf, sef234

 My data is going to be dynamic hence i cont confirm the value count or delimiter as "," in text to columns.

2 REPLIES 2
flying008
15 - Aurora

Hi, @Skarthika 

 

FYI.

 

Spoiler
\d[\d\s,-]+(?=,\s\D|$)|[a-z][a-z\s,]+(?=,\s\d|$)

录制_2025_05_08_12_45_56_951.gif

 

 

 

RWvanLeeuwen
11 - Bolide

Hi there,

 

I built a sample workflow that helped me solve your data puzzle.

Please do let me know if this solution works for you

 

the recursive RegEx logic was implemented with  Alteryx logic instead - hope this works :-)the recursive RegEx logic was implemented with Alteryx logic instead - hope this works :-)

Labels
Top Solution Authors