Re: S05 (regex) Q: after

2009-08-10 Thread Larry Wall
Modifiers like :ratchet are lexically scoped, and therefore extend into any embedded ?before... or ?after..., I think. These days if you find yourself saying surrounding context, you should usually ask yourself whether you mean lexical or dynamic, and that often indicates the direction I'll be

S05 (regex) Q: after

2009-08-08 Thread Austin Hastings
S05 mentions the magic after pattern in two locations, but I cannot find a specification of the interaction between after and the ratcheting {rule/token} status. Specifically, is token { ... ?after x } going to match the same pattern as rule { ... ?after x } ?? I ask because (I just

Re: S05 (regex) Q: after

2009-08-08 Thread Patrick R. Michaud
On Sat, Aug 08, 2009 at 05:45:40PM -0400, Austin Hastings wrote: [...] Specifically, is token { ... ?after x } going to match the same pattern as rule { ... ?after x } ?? I ask because (I just did it, and) with rules encouraging the liberal use of whitespace, and implicitly