i have this code
local strs = "my dog"
print (string.gsub( strs , " ","%20"))
i just wanted the output will be like this my%20dog
but i got this error
Runtime error
... invalid capture index
stack traceback:
[C]: ?
[C]: in function 'gsub'
i have read that %
is escape in Lua.
my question is, how can i apply %
for my replaced new string (strs
)?