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.
SOLVED

Want to extract specific sentence from long sentence

Srawat
8 - Asteroid

Hi,

 

I want to extract from REF to B/O sentence from the below sentence. Between REF to B\O text and numeric can differ as per below example. I have more scenario. Please advise how I can get as per required result. 

 

Srawat_0-1665479073921.png

 

Thanks,

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

@Srawat with the Regex tool in Parse mode you could try something like:

 

(REF=.+B\/O)

 

I've tested it on a quick string that I mocked up as you only provided a screenshot rather than actual data.

 

DataNath_0-1665479464121.png

JamesCharnley
13 - Pulsar

Hi @Srawat,

 

If you always need to capture whatever is between REF and B/O, you should be able to use Regex to tokenize on the expression REF.*?B\/O , which will find the instance starting in REF and ending in B/O, capturing everything in between.

 

JamesCharnley_0-1665479564712.png

 

Srawat
8 - Asteroid

Thanks Both. Working fine with both.

Labels
Top Solution Authors