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_. 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 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