With Lua's string.find function, there is an optional fourth argument you can pass to enable plain searching. From the Lua wiki:
The pattern argument also allows more complex searches. See the PatternsTutorial for more information. We can turn off the pattern matching feature by using the optional fourth argument plain. plain takes a boolean value and must be preceeded by index. E.g.,
= string.find("Hello Lua user", "%su") -- find a space character followed by "u" 10 11 = string.find("Hello Lua user", "%su", 1, true) -- turn on plain searches, now not found nil
Basically, I was wondering how I can accomplish the same plain searching using Lua's string.gsub function.