Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-01-27 11:22:32


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.


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