lua-users home
lua-l archive

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

From the Lua manual:

string.find (s, pattern [, init [, plain]])

Oooops... thanks :))

Does the same apply to string.gsub()?

Looking at the manual doesn't reveal any 'plain' option for gsub():

string.gsub (s, pat, repl [, n])

No, there isn't.

But, of course you can easily use gsub to escape any/all magic characters for you.

That's left as an exercise for the reader [;-)].

no signature is a signature.