19 Jan
2007
19 Jan
'07
2:02 a.m.
Hello, I am using the following pesudo code to do a regex match on big buffer (25K of text), sometimes it takes a little longer to come back with a result. I know this partly because the way my regular expression pattern is structured, but I am just wondering whether boost::regex has a mechanism to cancel the pending matching like this one. regex expr(const char* key, regex_constants::perl | regex_constants::icase); cregex_iterator m1(pBuf, pBuf + scope, expr), m2; if (m1 != m2) { // A match found } else { // No match found }