Skip to main content

Global search Regex

Hi there, Any chance we could allow regex to be used in a search?

If I'm looking for a phone number, lets say 123-456-7890, it could be saved as:

(123) 456-7890

(123)-456-7890

(123) 456 7890

123456 7890

etc etc etc

All I would need to do then would be to search for:

123.?456.?7890

(?:+?\d{1,4}[\s.-]?)?(?:(?\d{1,4})?[\s.-]?)*\d{3,4}[\s.-]?\d{3,4}

I'm just using a phone number as an example. I might want to search for all "Mark"s who's last names have an S in them

so:

Mark\s[A-Za-z][Ss][A-Za-z]

Extra credit:

Maybe also have a phone number search?

Log in to comment and vote

No comments yet

Be the first to share your thoughts.