1st Pass: It thinks it hasn't matched yet because pos == 0, so it matches, setting pos = 0.
2nd Pass: It thinks it hasn't matched yet because pos == 0, so it matches, setting pos = 0.
3rd Pass: It thinks it hasn't matched yet because pos == 0, so it matches, setting pos = 0.
...
In reply to Re^5: [bugs?] perldoc perlre, \G and pos()
by ikegami
in thread [bugs?] perldoc perlre, \G and pos()
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |