Oh! of course! I was returning "(.){$len}", which is $len number of single character capture groups. What I actually wanted was "(.{$len})" - a single capture of length $len.
I also see you added the missing /s modifier, which explains why it was stopping mid way through.
That makes the (??{...}) issue much clearer. Thanks!
In reply to Re^2: Modifying pos() from within (?{...})
by mxb
in thread Modifying pos() from within (?{...})
by mxb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |