I'm trying to make a simple string manipulation: getting the a file's name, without the extension. Only, string.find()
seem to have an issue with dots:
s = 'crate.png'
i, j = string.find(s, '.')
print(i, j) --> 1 1
And only with dots:
s = 'crate.png'
i, j = string.find(s, 'p')
print(i, j) --> 7 7
Is that a bug, or am I doing something wrong?