s = string.gsub("Lua is good", "good", "bad") print(s) --> Lua is bad
a = "我们使用$"; b = string.gsub(a, "%$", "RMB"); print(b) --> 我们使用RMB
http://blog.csdn.net/weiyuefei/article/details/52044235