how to check if a word appears as a whole word in a string in Lua
not sure how to check if a word appears as a whole word in a string, not part of a word, case sensitive. for example: Play is in strings Info Playlist Play pause but not in the strings Info Playlist pause Info NowPlay pause Since there is no usual \b word boundary in Lua, you can make use of a frontier pattern %f . %f[%a] matches a transition to a letter and %f[%A] matches the opposite transition. %f[set] , a frontier pattern ; such item matches an empty string at any position such that the next character belongs to set and the previous character does not belong to set. The set set is