Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2007-06-07 19:16:56


Eric Niebler wrote:
> Jean-Francois Bastien wrote:
>> Here is a simplification of my expression:
>> sregex expression = sregex::compile(
>> /* 1 */ "^("
>> /* 2 */ "c[^\r\n]*(?:\r?\n|\r)"
>> /* 3 */ "(?:"
>> /* 4 */ "(?!c)"
>> /* 5 */ "[^\r\n]*(?:\r?\n|\r)"
>> /* 6 */ ")*"
>> /* 7 */ ")"
>> );
>>
>> This gives a "quantifier not expected" exception.

I have found a very simple and safe fix for this problem. The patch is
attached to the bug report: http://svn.boost.org/trac/boost/ticket/1035.
I'll be updating the .zip in the File Vault in a minute (look for
version 1.0.4), but the Vault doesn't seem to be responding at the moment.

I'll leave it up to Thomas to decide whether to accept this fix for
1.34.1. It's not a bad bug, but the fix is simple enough and it passes
my tests.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk