Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
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!

 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

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
22 - Nova
22 - Nova

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
22 - Nova
22 - Nova

Happy to help 🙂 @faresghnaim 

 

Cheers and Happy Analyzing 😀

Labels