Regex statement to obtain data between 2 specific words.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
Solved! Go to Solution.
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @faresghnaim
Here is a regex for the job.
Use below config in Regex tool.
Output:
Workflow:
Hope this helps 🙂
If this post helps you please mark it as solution. And give a like if you dont mind 😀👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @faresghnaim
Another scenario considering the data is not broken into rows.
Input:
Output:
Workflow:
This might more suit your text file scenario. Please check and let me know 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
