Answers for "lua string replace / remove"

Lua
0

lua string replace / remove

text = "My text!"
-- Replace My by Our
text = text:gsub("My", "Our")
-- Remove "!"
text = text:gsub("!", "")
Posted by: Guest on February-28-2022

Browse Popular Code Answers by Language