Alteryx Designer Desktop Discussions

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

Extract the data after the word "CLASS"

nmotiani
Météoroïde

For example

 

Field 1

ABCD ABCDEF CLASS A-I

ABCD ABCDEF CLASS B-II

ABCD ABCDEF CLASS C-III

 

Desired Output:

A-I

B-II

C-III

 

3 RÉPONSES 3
DataNath
Castor

Hey @nmotiani, there's a few ways to do this. I always like playing around with standard string functions if we can get away with it so here's one method if you use this expression in a Formula tool:

 

Right([Field 1],
FindString(
ReverseString([Field 1]), 'SSALC')-1)

 

Can also just use the RegEx tool in parse mode with the following:

 

CLASS\s(.*)

 

binuacs
Polaris

@nmotiani using regex_Replace function

image.png

aatalai
Magnétar

@nmotiani it can also be done with the regex tool

 

with regex.PNG

Sondage
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Étiquettes