View Single Post
06/29/23, 11:01 PM   #15
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Originally Posted by Sharlikran View Post
You can't search like a squirrel on crack for the answer you seek, just the uppercase S. If you read it and see that the lowercase s is a space then the uppercase is all non spaces.

Code:
  local searchByWords = zo_strgmatch(searchText, '%S+')
  for theWord in searchByWords do
    <<do stuff>>
  end
Which is why that would return 3 words if searchText was "The Zone Name" similar to splitting the string using a space for the split.
well thats why it works then.. I was looking for ALL non-space characters. Thank you for the compliment though.

Thank you for the help.. I havent come across anything that states the capitol S was the reverse which IS highly useful.

Last edited by sinnereso : 06/29/23 at 11:17 PM.
  Reply With Quote