
21 Jul
2004
21 Jul
'04
1:27 a.m.
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.