|
Boost Users : |
From: Silvio Reis Junior (sreisjr_at_[hidden])
Date: 2008-09-03 09:42:29
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net