Boost logo

Boost Users :

From: Winson Yung (winson.yung_at_[hidden])
Date: 2007-01-18 21:02:50


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
}


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