Poll of the week: How should std.regex handle unknown escape

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Dec 3 07:48:09 PST 2011


On 12/3/11 6:54 AM, Kagamin wrote:
> Marco Leise Wrote:
>
>> http://www.easypolls.net/poll.html?p=4ed9478e4fb7b0e4886eeea2
>
> Erm... but "\." is a perfectly known escape sequence, so the question should be "How should std.regex handle known escape sequences as in: "[\.]"".

The dot inside a character set must not be escaped.

Andrei


More information about the Digitalmars-d mailing list