Regex tool
- 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
I have ID CODES that I need to pull out all ING and MUER codes but these have ING A, ING B, ING C, etc and same for MUER A, MUER B, MUER C, I need to pull out of ID codes column all the ones that have a ING and MUER even the ones with the A, B, C added after.
I used REGEX match with beginning of word but its not working
nay help thanks@!
Solved! Go to Solution.
- Labels:
- Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Match will tell you if it matches the pattern or not. Try REGEX_Match([ID Codes],"(\w+)\s.+")
If you want to pull out the ING and MUER into its own column, I would do:
REGEX_Replace([ID Codes],"(\w+)\s.+","$1")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you explain what [ID Codes],"(\w+)\s.+","$1") means? plz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I used the formula for this and didnt work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Hi2023 attaching a sample workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The REGEX_Replace is only helpful if you want to parse out the ING and MUER into it's own column - the formula is identifying the pattern as one or more word characters (\w+) followed by a single space (\s) followed by one or more of any other characters (.+). The $1 corresponds to the marked group (aka parentheses) around the only part we want to keep.
Based on the use case description, you want to Filter, not use a Formula.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you. Where is the best place to get this info on the character meanings?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
regex101: build, test, and debug regex
If you could accept this as a solution as well, that would be great!
