Free Trial

Alteryx Designer Desktop Discussions

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

Parsing with RegEx

ksamuel
6 - Meteoroid

Hi all, 

I'd appreciate if someone could lend a hand. It seems straight forward but I just cant seem to crack it. Col1 is what I have and Col2/ Col3 are what I require.

 

 

Capture.PNG

 

I want to parse out the characters in Col2 and Col3 from Col1. As you can see the outputs can vary in length. The output in Col 2 is always preceded by "A" ; however, the output in Col3 can be preceded by different characters.

 

 

4 REPLIES 4
MilindG
12 - Quasar

Check out the attached file.

ChrisTX
16 - Nebula
16 - Nebula

For Col2, can you use the Text to Column tool, take the second column, then use the Substring or ReplaceChar function to remove the A?

 

For Col3, try the RegEx tool in Parse mode with this expression:      .*?(\d*)\)$

 

 

ChrisTX_0-1661799903212.png

 

 

Chris

binuacs
21 - Polaris

@ksamuel One way of doing this with the Regex_Replace function

binuacs_0-1661809087166.png

 

Emmanuel_G
13 - Pulsar

Hi @ksamuel ,

 

Find attached the way to do this with regex function in formula tool.

 

Cheers !

 

Emmanuel_G_0-1661893876933.png

 

Labels
Top Solution Authors