SOLVED
Regex Capture Groups
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rheepa
7 - Meteor
04-13-2022
04:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
I have a question about RegEx Parse. I have the following string: "..a.stuff_my_month_to_delete" and the following Regular Expression: "(\.+(.*))_month". The Parse Output Method generates two output columns, with RegExOut2 being the desired one: "a.stuff_my". How do I suppress RegExOut1? Is a backreference needed and if so, how do I do it?
Thanks!
Solved! Go to Solution.
Labels:
- Labels:
- Regex
3 REPLIES 3
21 - Polaris
04-13-2022
05:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The one pair of () will give one output, so we can remove one pair of them.
A good place for testing and learning RegEx. 😁
\.+(.*)_month
04-13-2022
05:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks! I appreciate the help!
21 - Polaris
04-13-2022
05:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@rheepa
Glad to be helpful. 😁
