View Single Post
04-08-11, 08:44 AM   #3
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
for case-insensitive search, using character sets with the pattern/regex might work
Code:
if strfind(yourmsg, "[Dd][Rr][Uu][Ii][Dd] [Tt][Aa][Nn][Kk]") then
	-- do stuff
end
but yes, if people make typos it wont work ..

-- Edit:
NitraMo is right;
Myself, I'm way to accustomed with using character sets for in string.gsubs ;(

Last edited by Ketho : 04-08-11 at 12:22 PM.
  Reply With Quote