Answers for ":gsub lua"

Lua
4

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
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language