You'll want to check for a substring existing or not; e.g.
std::string str = "Elephant Rhino Crocodile";
std::tr1::regex rxRhino("Rhino");
Then
regex_search(str.begin(), str.end(), rx)
will return
true
because the regular expression matches a substring of
str
.