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)
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T169420 [AutoWikiBrowser] Find & Replace related tickets | |||
Open | Feature | None | T100448 [Migrated] Subset regex |
Event Timeline
Comment Actions
@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.