It'll go through it repeatedly, starting at each position, but never consuming anything.while("AAAA" =~ /(?=AA)/g){ $count++; }
In reply to Re: counting overlapping patterns
by Eimi Metamorphoumai
in thread counting overlapping patterns
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |