Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-07-04 13:30:33


Chandan Nilange wrote:
>> Thank you John for your prompt reply.
>> I tried the same example by replacing [:xdigit:] with [[:xdigit:]]
>> in the expression However, I still do not get the desired match.

Works for me with 1.34, I see:

Found Pattern:start:1PAGE1ERROR1:end:
Pattern starts at :31
Pattern ends at: 42
Pattern length:12

as output.

For some older Boost versions though you may need to use:

re.assign(sre, boost::regex_constants::perl |
boost::regex_constants::icase);

Otherwise the expression is interpreted as a POSIX-Basic regex which isn't
what you want.

John.


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