in reply to Re^2: Counting multiple matches of RegExp in single linein thread Counting multiple matches of RegExp in single line