Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2004-07-20 20:27:24


Adam Molnar wrote:
> hi!
>
> using the latest regex patch and vc7.1 i've accidentally encountered
> the following:
>
> ...
> regex re("([^\n]*\\n+\\s+)+NEEDEDSUBITEM2:[^\\s]");
> bool matched = regex_search(text, re); // bad_expression

You are putting a new-line character in your regular expression, "([^\n".
Perhaps that is causing your problem.


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