lua string.gsub code example
Example 1: lua what is _G
_G is the global table that holds all global variables
_G["Key"] = "Whatever"
Example 2: lua gsub
s = string.gsub("Lua is cute", "cute", "great")
print(s) --> Lua is great
s = string.gsub("all lii", "l", "x")
print(s) --> axx xii
s = string.gsub("Lua is great", "perl", "tcl")
print(s) --> Lua is great