Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-08-30 04:27:55


kiran wrote:
> Hi,
> I have 2 doubts
>
> 1) Why is regex expr("Resurfacing.*?Home",
> boost::regex::icase) getting aborted. ?

That should be regex expr("Resurfacing.*?Home",
 boost::regex::icase | boost::regex::perl)

> 2) How to make boost regex behave like perl regex ? I mean
> "dot" in boost::regex is taking new lines as well. How to prevent
> this ?
> Is "boost::regex::perl" flag the answer to the question ?

Pass match_not_dot_newline to the regex-matching algorithm you're calling.

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