|
Boost Users : |
From: Winson Yung (winson.yung_at_[hidden])
Date: 2006-07-22 02:58:46
Hello all, I have the following regular expression, but it doesn't match to
this text "REVENUE
................................................... $10,481.1"
const char* pattern[] = "Revenue[\s\.]*\$?\s*([0-9,\.]*)";
my code looks something like this:
std::vector <unsigned int> v;
boost::RegEx expr(pattern, true);
v.clear();
unsigned int result = expr.Grep(v, pBuf);
if (result != 0) {
std::string s = expr[0];
s = expr[1];
............
Why expr[0] and expr[1] weren't return the aboved mention text as the first
match? I think set 'true' in expr constructor means do case insensitve
match.
/Winson.
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