Re: [Boost-users] [Regex] Accessing match count

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
5462
Age (days ago)
5462
Last active (days ago)
0 comments
1 participants
participants (1)
-
nintiļ¼ internode.on.net