Page MenuHomePhabricator

[Migrated] Subset regex
Open, Needs TriagePublicFeature


Add in the subrule a new type, like "Entire text" and "Inside template call {{..}}", but it only does the regex on the match from the parent rule. It call it something like "Matched from parent in $1". Implementing this would likely knock out some other feature requests, like my HTML substitution @Dispenser 02:26, 8 June 2007 (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 Find and replace on the AutoWikiBrowser board.

@Dispenser, 04:16, 19 December 2007 (UTC) wrote:

Maybe I can example it better with an example:

I'll use HTML



We want to change String1 to RE1

What I'd like to be able to

Rule: Find the body
RE find: (<body>.*?</body>)
  Sub-rule: Use what was captured in parent
  RE find: String1
  RE replace: RE1

While the example is a little simplistic, it allow greater flexibly. The String1 in the title tags will never be parsed and there can be many String1 in the body without turning the recursion as with (<body>.*?)String1(.*?</body>). Hopefully that simplifies things.

StjnVMF set Security to Software security bug.May 18 2018, 5:20 PM
StjnVMF added a project: acl*security.
StjnVMF changed the visibility from "Public (No Login Required)" to "Custom Policy".
StjnVMF subscribed.
Bawolff changed the visibility from "Custom Policy" to "Public (No Login Required)".May 19 2018, 6:05 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".Nov 22 2022, 5:18 PM