$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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