I believe regex_match () matches the entire string. Try regex_search () .
It would work with the following regex:
boost::regex r(".*\\..*");
and the regex_match () function . But then again, regex_search () is what you are probably looking for.
source
to share