string.gsub and "." don't work?
Posted: Sun Jun 24, 2007 12:53 am
A call to this function
returns
It would work as this:
returns
Why the dot "." doesn't work in the string.gsub function?
-G
Code: Select all
string.gsub("hello.world.bye", "." , "-")
Code: Select all
--------------- 15
Code: Select all
string.gsub("hello#world#bye", "#" , "-")
Code: Select all
hello-world-bye 3
Why the dot "." doesn't work in the string.gsub function?

-G