On 03.12.2011 19:48, Andrei Alexandrescu wrote:
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
And that breaks ehm ... e.g. rdmd ;)
Anyhow I'm trying to pick a reasonable rule. 100% compatibility with old
regex would mean ignore '\' where not applicable. My only concerns with
it is future extensibility via \<character>.
--
Dmitry Olshansky