Syed Babu wrote:
Unable to understand the first one. Both r1 and r2 looks alike except the paranthesis but paranthesis is used to define the
capture group. Then how the size differs?
Which part of the documentation is unclear?
http://msdn.microsoft.com/en-us/library/bb982517.aspx
match_results::size
The member function returns one more than the number of capture groups in the regular expression that was used for the search.
Igor Tandetnik