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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -