Alteryx Designer Discussions

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

General Discussions has some can't miss conversations going on right now! From conversations about automation to sharing your favorite Alteryx memes, there's something for everyone. Make it part of your community routine!

SOLVED

Regex statement to obtain data between 2 specific words.

Faresghnaim
7 - Meteor

Hi guys!

 

I have a huge text file and I would like to get all the data between 2 specific strings which are "Ready" and "Commit" for example:

 

Ready the id for the user is 241 Commit 

Ready the email is john@example.com Commit 

 

If I want to get the data between those 2 specific no matter what it is, which regex statement could I use?

 

Thanks a lot!

 

atcodedog05
17 - Castor

Hi @Faresghnaim 

 

Here is a regex for the job.

Use below config in Regex tool.

atcodedog05_0-1603624797055.png

Output:

atcodedog05_1-1603624836394.png

Workflow:

atcodedog05_2-1603624858093.png

 

 

 

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
17 - Castor

Hi @Faresghnaim 

 

Another scenario considering the data is not broken into rows.

Input:

atcodedog05_0-1603626490842.png

Output:

atcodedog05_1-1603626547864.png

Workflow:

atcodedog05_2-1603626561318.png

This might more suit your text file scenario. Please check and let me know 🙂

atcodedog05
17 - Castor

Happy to help 🙂 @Faresghnaim 

 

Cheers and Happy Analyzing 😀

Labels