Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regex search #1817

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

pedro-mendonca
Copy link
Member

Problem

As described in #1816, there are cases when an usual search just isn't good enough.

Solution

Add a checkbox to turn the search in a Regex search

  • Add a checkbox field near the term input to turn the search in a Regex
  • If the checkbox is selected, make a regex search to the db

Testing Instructions

  1. Open translation table with many translation strings, like a copy of WordPress core.
  2. Try searching with the Regex option, with examples like the below, with and without case sensitive:
  • ^(Activ|Disabl|Enab) - Will find any string starting with Activ..., Disabl... or Enabl...
  • ^(activ\w*\s.*) - Will find any string starting with Activ... folowed by any other words, like Activate %s

Screenshots or screencast

Regex Search for ^(Activ|Disabl|Enab)

imagem

Regex Search for ^(activ\w*\s.*)

imagem

Fixes #1816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add regex option to search
1 participant