
21 Jul
2004
21 Jul
'04
10:50 a.m.
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.
no, that's just a typo. the same with "\\n"