
27 Jan
2007
27 Jan
'07
4:22 p.m.
Kyle Alons wrote:
What do you mean by "doesn't work" ? It runs to completion just fine for me, no exceptions etc. Or do you mean it produces the wrong output? (I don't know what your specific intent was for the regex, so I can't guarentee that it's 100% identical in result).
With the original expression in v1.31, it gives the attached output. In v1.33.1, the original expression fails with 'memory exhausted', and using (?!System)*, specifically,
"(\\w+\\()(?!System)*System\\.Data\\.DataSet ...
or
"(\\w+\\()((?!System)*)System\\.Data\\.DataSet ...
or
"(\\w+\\()((?:!System)*)System\\.Data\\.DataSet ...
makes no replacements.
Doh!! Should have been using ((?:(?!System).)*) John.