Could anyone tell me how to toggle case sensitive searching on string find?
Also whole word searching?, is this even possible?, I figured I could concat a space character to the beginning and end of the string I want to look for but this wont work if the searched word is at the start or end of the string.
There is no case-insensitive flag/toggle in Lua’s pattern-api. See:
Lua’s pattern matching has no “word boundary” meta-char, like other pattern-match/regex api’s have. So the answer is: “no”.
It’s a bit trickier than that: think about punctuation marks.