Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-06-14 10:04:51

John Maddock wrote:
>>The following trivial pattern:
>> boost::regex pat("[\\D]");
>>throws an "Invalid or trailing backslash" exception.
> Yes, known problem, don't know how to fix it easily either

I peeked at your code. For narrow characters, you can easily merge the
negated character class into the re_set.map_[256]. For wide characters,
you'll need to store a list of negated character classes to re_set_long,
just as you currently store a list of chars, ranges and equivalences.

Eric Niebler
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at