Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

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
12 - Quasar

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

binuacs
21 - Polaris

@Komal_ using text-column tool

image.png

Labels
Top Solution Authors