lua-users home
lua-l archive

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


On 27/08/2019 16.17, Roberto Ierusalimschy wrote:
You can safely escape any non-alphanumeric character. Escaping some alphanumeric characters changes their meanings.

On 27/08/2019 16.26, Luiz Henrique de Figueiredo wrote:
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.

Right, both character classes (% + letter) and captures (% + digit) are
a thing.  I shouldn't be writing "quick mails" when mentally impaired.
(It's effin' hot outside…)

Sorry.

-- nobody