Answers for "how to remove characters from a string in lua"

Lua
1

how to remove characters from a string in lua

-- removing characters

local str = "Hello World"

print(str:gsub("%o", "")

--> Hell Wrld
Posted by: Guest on November-01-2020

Code answers related to "how to remove characters from a string in lua"

Browse Popular Code Answers by Language