lua-users home
lua-l archive

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


On Aug 20, 2014, at 10:02 PM, Shmuel Zeigerman <shmuz@013net.net> wrote:

> On my system, '%p' does not match '[+$^]', so '%p' should become '[%p+$^]’.

Hmmm?

$ lua -v
Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio

print( ( '[+$^]' ):gsub( '%p', '%%%1' ) )

%[%+%$%^%]