lua-users home
lua-l archive

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


Hi,

[^%W] is the same as %w : any alphanumeric character
^%W is a non-alphanumeric character at the beginning of the string.

in PiL3, page 215, the capture is "(%W)" and the replacement pattern is "%%%1". This puts an escaping percent sign % in front of any non-alphanumeric character.

--
Oliver

2014-08-27 14:10 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:
"any non-alphanumeric character".
Sorry, typo. "any non-non-alphanumeric character".