in reply to Re^2: Counting frequency of the regex matchesin thread Counting frequency of the regex matches