[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem matching on [.]
- From: "Mark Edgar" <medgar123@...>
- Date: Tue, 15 May 2007 09:49:01 -0700
On 5/15/07, Philippe Lhoste <PhiLho@gmx.net> wrote:
And in classical regular expressions,  removes magic from _most_
special chars (except escape char and chars special to this expression),
so changing this would be unexpected to most users.
In fact not even the backslash is not special in classical (BRE and
ERE) regexes when used in a bracket expression . In newer regex
flavors (perl, PCRE, Java, etc) the backslash _is_ special in a
bracket expression, which adds much confusion.
I think Lua's use of the % character for escaping is particularly pleasant.