c++ - how to understand what part of the boost::regex failed to match/search -



c++ - how to understand what part of the boost::regex failed to match/search -

i using boost::regex match (better boost::regex_search) text vs regular expression.

this 1 doesn't match , regex huge.

do know if in library there function telling me part of regex failed match?

i using linux/gcc

std::string text; // whatever boost::regex rgx( "(\\w+) (\\d+) (\\s+)" ); boost::smatch m; if( !boost::regex_search( text, m, rgx ) ){ // how know (\\w+) or (\\d+) or (\\s+) failed? }

there no tool in library knowledge, using boost version 1.28.0.

did seek execute (\w+), (\d+) , (\s+) independantly of each other? @ to the lowest degree 1 of them should fail matching.

c++ linux boost-regex

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -