in reply to Can I use backreferences as quantifiers in a regex?
/ \# (\d) ( (??{ "\\d{$^N}" }) ) ( (??{ "(?s:.{$^N})" }) ) /x
Your have a second bug. You can't match chr(0x0A) in the binary data. I fixed this by adding the "s" modifier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can I use backreferences as quantifiers in a regex?
by johnbo (Initiate) on Mar 30, 2009 at 06:07 UTC | |
by ikegami (Patriarch) on Mar 30, 2009 at 06:12 UTC |