in reply to Re: Modifying pos() from within (?{...})
in thread Modifying pos() from within (?{...})
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!
|
---|