in reply to Re: strange behaviour: continue with \G and /gc and look forward
in thread strange behaviour: continue with \G and /gc and look forward
It can match at the same position twice.
say "[$-[0], $+[0])" while "aaaaa" =~ /a*?/g;
[0, 0) [0, 1) [1, 1) [1, 2) [2, 2) [2, 3) [3, 3) [3, 4) [4, 4) [4, 5) [5, 5)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: strange behaviour: continue with \G and /gc and look forward
by tybalt89 (Monsignor) on Dec 14, 2019 at 17:52 UTC |