Alteryx Designer Desktop Discussions

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

Parse Cell - Multiple Occurences

MysticalAz
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
20 - Arcturus

@MysticalAz One way of doing this with the Regex tokenize 

binuacs_1-1677091104574.png

 

 

binuacs_0-1677091325068.png

 

 

 

BS_THE_ANALYST
14 - Magnetar

@MysticalAz 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

 

MysticalAz
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
20 - Arcturus

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

Labels