[Migrated] Subset regex
Open, Needs TriagePublic

Description

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

Reguyla updated the task description. (Show Details)
Reguyla raised the priority of this task from to Needs Triage.
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

<html>
<title>String1</title>
<head>
</head>

<body>
String1
</body>
</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: Security.
StjnVMF changed the visibility from "Public (No Login Required)" to "Custom Policy".
StjnVMF added a subscriber: StjnVMF.
Restricted Application added a project: Security. · View Herald TranscriptMay 19 2018, 5:55 PM
Bawolff changed the visibility from "Custom Policy" to "Public (No Login Required)".May 19 2018, 6:05 PM
hoo removed a project: Security.May 19 2018, 6:05 PM
hoo removed a subscriber: StjnVMF.