Possible Duplicate:
How to convert a number to string and vice versa in C++
How should I convert the boost::regex match result to other format, like integer with below code?
string s = "abc123";
boost::regex expr("(\\s+)(\\d+)");
boost::smatch match;
if(boost::regex_search(s, match, expr)) {
string text(match[0]);
// code to convert match[1] to integer
}