SOLVED
RegEX filter
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
BautistaC888
8 - Asteroid
‎02-08-2021
12:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I need to filter the rows with the words "HP" in any position. I tried to do it with a RegEX but i can't find the correct expression.
I will appreciate your help.
Thank you.
Solved! Go to Solution.
Labels:
- Labels:
- Preparation
- Regex
2 REPLIES 2
AngelosPachis
16 - Nebula
‎02-08-2021
12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
A not do sophisticated regex would be to look for "HP" with everything that may come before it or after it.
REGEX_Match([Nombre], ".*?HP.*?")
Not perfect, but it works for the given dataset
Hope that helps.
Cheers,
Angelos
ACE Emeritus
‎02-08-2021
01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
A couple of suggestions:
Easiest is just a contains function:
CONTAINS([Nombre], "HP")
If you want to only match words of HP (rather than contains), something like: should work
REGEX_Match([Nombre], ".*\bHP\b.*")
