/ \# (\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.
In reply to Re: Can I use backreferences as quantifiers in a regex?
by ikegami
in thread Can I use backreferences as quantifiers in a regex?
by johnbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |