Re: Store captures and non-captures in source-string order

2008-10-12 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Sun, Oct 12, 2008 at 11:44:05AM +0200, Moritz Lenz wrote: >> When we write regexes, we generally capture stuff in a way that makes >> the following semantic analysis easier. For example we could have a >> regex m/ + ? */ if we're only interested in the match >> trees

Re: Store captures and non-captures in source-string order

2008-10-12 Thread Patrick R. Michaud
On Sun, Oct 12, 2008 at 11:44:05AM +0200, Moritz Lenz wrote: > When we write regexes, we generally capture stuff in a way that makes > the following semantic analysis easier. For example we could have a > regex m/ + ? */ if we're only interested in the match > trees of what and matches, not their

Store captures and non-captures in source-string order

2008-10-12 Thread Moritz Lenz
When we write regexes, we generally capture stuff in a way that makes the following semantic analysis easier. For example we could have a regex m/ + ? */ if we're only interested in the match trees of what and matches, not their respective order. But if you want to re-used the match tree for som