I want to write a script that will correctly detect whether there is a period in a string. However, the script detects the first character it finds as a period. Are periods treated differently/weirdly? Any assistance is appreciated.
My code
print(string.match("oof", "."))
What I expect to happen
Output should print nil
What actually happens
Script treats first character it finds as a period
Periods are a special character (look up special characters to know what those are). To get it to function like a normal period, put a % before it (%.)