Page MenuHomePhabricator

[Migrated] Find/Replace: Regex checkbox prompt
Open, Needs TriagePublicFeature

Description

When entering a regex in the Find/Replace dialog, it's easy ''(ahem)'' to forget to tick the Regex checkbox. Could a test be made when clicking Done for [, * and ?, and if Regex is not checked then prompt the user with something like "This appears to be a regular expression. Did you mean to tick the Regex box?".
Too many false positives would get irritating, so deliberately keeping the list simple like that means that newer users, who are more likely to restrict themselves to simpler regular expressions and also more likely to forget, will be the ones who will more often be prompted. @ClickRick 10:12, 29 June 2009 (UTC)

Related Objects

Event Timeline

Reguyla raised the priority of this task from to Needs Triage.
Reguyla updated the task description. (Show Details)
Reguyla added a project: AutoWikiBrowser.
Reguyla moved this task to Feature request (unsorted) on the AutoWikiBrowser board.
Reguyla added a subscriber: Rjwilmsi.

@Rjwilmsi 15:29, 29 June 2009 (UTC) wrote:

Any false positives would be extremely annoying. This would have to be explicitly turned on somewhere, which would probably make it of little value for new users.

@Jarry1250 09:17, 30 June 2009 (UTC) wrote:

Or could you write a really good regex for matching regexes?

@Rjwilmsi 09:43, 30 June 2009 (UTC) wrote:

"a*" could be a regex or a literal search. Any warnings would have to be explicitly turned on somewhere, which would probably make it of little value for new users.

@ClickRick 10:20, 30 June 2009 (UTC) wrote:

I would personally take Jarry's suggestion with a pinch of salt for exactly that reason. To your earlier concern, though, I would say that the prompt should be turned on by default but include a "Do not show this prompt again" checkbox, which should be remembered for that user, so an advanced user will only be prompted the once. An option somewhere else (Options|Preferences..., perhaps?) to turn it back on might be appreciated, too.

@Rich_Farmbrough 21:55, 21 April 2010 (UTC) wrote:

Maybe make the default for the regex box, checked? Most non-regex (for a loose value of the word most) also wokr aas regexen, e.g. "Horse"

Aklapper changed the subtype of this task from "Task" to "Feature Request".Nov 22 2022, 5:18 PM