lua-users home
lua-l archive

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

> (And yes always putting in the escaping '%' works fine and is probably
> safer/simpler than a bunch of special cases if you're generating the set…)

You should not escape all letters because some of them represent
classes. For instance "[%d]" is the same as "[0123456789]". You can
escape all punctuation.