|
Why would someone need '%m'?
The motivation presented here was to
escape the magic characters. But Lua ensures that it is safe to escape
any non-alphanumeric character, not only the magic ones. So, you can
escape anything that matches '%p' to have a valid, non-escaped pattern:
p = string.gsub(p, "%p", "%%%0")
No need for '%m'.