In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse Cell - Multiple Occurences

mystasz
8 - Asteroid

Hi Community,

 

In the attached input, the Changes column contains free text where a T100 number exists followed by 5 numbers (e.g T100-XXXXX). I've managed to parse the first occurrence out by using Regex Parse with the following expression: (T100-\d*). 

 

For event ID 222, there's 3 T100 numbers but I only get the first one (T100-84904). Any idea how I can do this? 

 

I created a separate tab for expected output. Thanks in advance. 

 

4 REPLIES 4
binu_acs
21 - Polaris

@mystasz One way of doing this with the Regex tokenize 

binuacs_1-1677091104574.png

 

 

binuacs_0-1677091325068.png

 

 

 

BS_THE_ANALYST
15 - Aurora
15 - Aurora

@mystasz here's one way you can do it. It's dynamic aswell. It will make new columns for every occurrence of:
'T100\s*-\s*\d{5}' in the string

BS_THE_ANALYST_0-1677091202361.png

 

All the best,
BS

LinkedIN

Bulien
mystasz
8 - Asteroid

Thank you @binu_acs . This doesn't work completely since Event ID 222 has three T100 numbers. The one that was not caught was the one that has a space in it (T100 - 84885) while the others worked because they do not have spaces (T100-84904). Any suggestions?

binu_acs
21 - Polaris

@mystasz The workflows I uploaded should work, can you download and try again?

Labels
Top Solution Authors