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.

Extract the data after the word "CLASS"

nmotiani
6 - Meteoroid

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 REPLIES 3
DataNath
17 - Castor
17 - 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
21 - Polaris

@nmotiani using regex_Replace function

image.png

aatalai
15 - Aurora

@nmotiani it can also be done with the regex tool

 

with regex.PNG

Labels
Top Solution Authors