lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 5/15/07, Philippe Lhoste <> 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.