Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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
binuacs
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 @binuacs . 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?

binuacs
21 - Polaris

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

Labels
Top Solution Authors