No matter what the string value of s is, s:find(".") will always return 1. Is there a reason for this? am I doing something wrong?
✓ ANSWER ACCEPTED
Why doesn't s:find(".") return nil?
1 answer
✓ Accepted answer
string.find matches patterns by default. In patterns "." means "any character". To ignore patterns do string.find(str,'.',1,true)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I did a bit of research; this might be why: http://wiki.roblox.com/index.php?title=String_pattern#Character_Classes It's a special character. >.<