
12 Mar
2010
12 Mar
'10
2:07 a.m.
Thanks Gevorg, that worked a treat. Actually, I don't really need the count as a string so this worked even better: return std::distance( boost::sregex_iterator( word.begin(), word.end(), expression ), boost::sregex_iterator() ); First time I've seen std::distance. Sigh, so much to learn ... :-) Mick