When I try to do
print(string.find("abcdefghi.klm","."))
My program outputs 1 rather than 10. Is .
some kind of special char (so an escape char is needed) or just a default return value because of a failed search? thanks for any replies
When I try to do
print(string.find("abcdefghi.klm","."))
My program outputs 1 rather than 10. Is .
some kind of special char (so an escape char is needed) or just a default return value because of a failed search? thanks for any replies
I think it might be a special character… Try %.
as the pattern.
Thanks @JakAttak
@Coder, not a problem