fork(30) download
  1. function ContainsWholeWord(input, word)
  2. return string.find(input, "%f[%a]" .. word .. "%f[%A]")
  3. end
  4.  
  5. print(ContainsWholeWord("Info Playlist pause","Play") ~= nil)
  6. print(ContainsWholeWord("Info Play List pause","Play") ~= nil)
  7.  
  8.  
Success #stdin #stdout 0s 2836KB
stdin
Standard input is empty
stdout
false
true