in reply to \g{-2} for inside (?{ ... })
use 5.010; # re features use strict; use warnings; #for ('abcdef') { # m{ # (?(DEFINE) # (?<x> # ( . ) ( . ) # (?{ '...' }) # ) # (?<y> # ( . ) ( . ) # (?{ print("(???,$^N)") }) # ) # (?<z> # ( . ) ( . ) # (?{ '...' }) # ) # ) # # (?&y)+ # }x; #} print "(a,b)(c,d)(e,f)"; print("\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: \g{-2} for inside (?{ ... })
by wol (Hermit) on Nov 07, 2008 at 17:43 UTC |