cpp cmatch what;
if (regex_match("Hello", what, regex("[A-Z][a-z]+")))
cout << "ok" << endl;
// must link with either boost_regex or boost_regex-mt (multithread-safe version)
#include <iostream>
#include <boost/regex.hpp>
using namespace std;
using namespace boost;
int main()
{
cmatch what;
if (regex_match("Hello", what, regex("[A-Z][a-z]+")))
cout << "ok" << endl;
}