Capture two chars inside the lookahead and throw in another dot afterwards to advance one character in the string:
$_ = 'blah'; my @matches = /(?=(..))./g; print "@matches\n";
In reply to Re: Capturing with look-ahead
by danger
in thread Capturing with look-ahead
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |