Alteryx Designer Desktop Discussions

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

String Parsing and matching

Komal_
7 - Meteor

Hi All,

 

I have below dataset and also mentioned the expected output from the data set -

 

DataValueMatch/Mismatch
CATERPILLAR|ININMATCH
CATERPILLAR|INCATERPILLARMATCH
CATERPILLAR|INAMISMATCH
CATERPILLAR|INCATMISMATCH
BUBBLE GUM|BOXBUBBLEMISMATCH
BUBBLE GUM|BOXBOXMATCH
BUBBLE GUM|BOX|PINBUBBLE GUMMATCH
BUBBLE GUM|BOX|PINPINMATCH
BUBBLE GUM|BOX|PINBMISMATCH
BUBBLE GUM|BOX|PINPMISMATCH

 

The issue is there is no constant blocks (|) between the each word in each row. They could be multiple.

any help is appreciated.

 

Thanks in Advance,

Komal

2 REPLIES 2
griffinwelsh
11 - Bolide

You need to use the tokenize function of the regex tool. Expression is ([^|]+). Sample solution workflow is attached.

binuacs
20 - Arcturus

@Komal_ using text-column tool

image.png

Labels