lua-users home
lua-l archive

Re: literal find?

[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 [;-)].
Ashwin.
--
no signature is a signature.

AltStyle によって変換されたページ (->オリジナル) /