SOLVED
Regex match
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
cactooos
5 - Atom
‎07-17-2023
11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I am looking for a way to parse a substring in the form ABCXXXX or ABC-XXXX where XXXX are any digits.
Below example of expected result
text | match |
Max has a cat | |
orange cats ABC7897 are the best | ABC7897 |
maybe ABC-1234 better than dogs | ABC-1234 |
but DEF-5678 some not agree |
Solved! Go to Solution.
4 REPLIES 4
FrederikE
13 - Pulsar
‎07-17-2023
11:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎07-17-2023
12:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks but as a result I would need the matched substring rather than just true or false
steven_king
6 - Meteoroid
‎07-17-2023
12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @cactooos, you can add a couple parentheses to the expression and change the Output method to Parse.
‎07-17-2023
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
works like a charm, thanks
