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

David Nadlinger see at klickverbot.at
Sat Dec 3 11:14:58 PST 2011


On 12/3/11 6:00 PM, Vladimir Panteleev wrote:
> I think the common intuitive rules regarding escapes in regexes are as
> follows:
>
> 1) Unescaped punctuation usually has special meaning (so people often
> escape all punctuation literals)

I am only a causal user of regexen, and I agree that this is what seems 
intuitive to me – in fact, I just used [^\(] to match non-brackets in my 
editor today.

David


More information about the Digitalmars-d mailing list