You are of course quite right. The hidden story is that there was a .*? in there following a \G. I realised the anchor and wild card were redundant and removed them, but forgot to remove the /s.
So the further lesson is: look, then look again. And each time you make a change, look twice more. That time I only looked once more. :)
In reply to Re^3: Counting frequency of expressions in a string
by GrandFather
in thread Counting frequency of expressions in a string
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |