On Tue, Mar 31, 2009 at 7:59 AM, Nick Gearls <nickgea...@gmail.com> wrote: > In a page containing only "abcdef" (inside the <body>), and the following > directives, > Substitute s~(abc.*)$~$1~q > Substitute s~def~XXX~ > the second directive should be ignored, because of the q flag on the first > one. > The result should be "abcdef". > However, the result is "abcXXX". > > Did I miss something ?
I believe that's only a factor when the 2nd pattern spans a boundary of original text + previous substitution, not when the 2nd pattern is contained wholly in the substitution. THe doc for the inverse/default, flatten, is a little more on target. -- Eric Covener cove...@gmail.com