
3 Sep
2008
3 Sep
'08
1:42 p.m.
Hello folks! I'm trying to work with boost::regex but I'm stuck. I wrote the following code: //------------------------------------------------------------------- int main( int argc, CHAR* argv[] ) { boost::regex RegEx( "(eth\\d)" ); if ( boost::regex_match( "dsjkadhjksadjks eth1: ssgdsdhjasgdjg", RegEx ) ) { printf( "Found.\n" ); } return 0; } I tested the expression with Expresso and it's correct although it doesn't work in the code above. Is there something missing? My best regards Silvio