id summary reporter owner description type status milestone component version severity resolution keywords cc 9227 boost::regex match_count off by 1 spoo@… John Maddock "{{{ #include int main(int, char **) { boost::regex r(""(a)""); std::cout << r.mark_count(); return 0; } }}} prints out ""2"" instead of ""1"". Both libc++ and libstdc++ print out ""1"". This was discussed in 2007 as well I believe, but I couldn't find any other mention of the issue: [regex] regex::mark_count() incorrect? (I can't post the link since trac rejects my submission)" Bugs closed To Be Determined regex Boost 1.54.0 Problem fixed