in reply to \g{-2} for inside (?{ ... })
The following appears to work:
but I suspect that is finessing the problem you're really interested in.(?<x> ( . . ) (?{ '...' }) ) (?<y> ( . . ) (?{ print("(", join(',', split(//,$^N)), ")") }) ) (?<z> ( . . ) (?{ '...' }) )
I'd really love to know what on earth this is doing, and why !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: \g{-2} for inside (?{ ... })
by ikegami (Patriarch) on Nov 06, 2008 at 12:32 UTC |