Corona string.find() : Finding “.”
问题 I'm trying to split a string into two parts, which is divided by a '.' character. But string.find() function cant handle that I have this kind of string local test = "345345.57573" I tried local start = string.find( test, "." ) local start = string.find( test, "\." ) local start = string.find( test, "(%w+).(%w+)" ) But none of them worked. String.find() always return 1 which is false. What might be the problem? Edit: I also tried to use gsub and change . with another character but it didn't