I'm using WIM (Wow Instant Messenger) to handle my whispers. One of the features is the ability to suppress messages that follow a specific pattern (i.e. invite, add on messages etc.) WIM uses standard LUA string matching to handle these filters.
I am having difficulty with a filter expression.
I am trying to filter out messages that say:
"<Not Well Fed> PlayerName"
From looking at the wiki for LUA filtering, I came up with the expression:
^<Not Well Fed>.*
but this is not working. I need to filter all strings that start with "<Not Well Fed>" and end with any other string.
2) "<" and ">" are not magic characters for Lua pattern matching, so you don't need to escape them with %.
3) You do not need to match "the rest of the string" unless you are trying to do something special with the rest of the string.
4) Try removing the ^ anchor. The string being examined may not simply be the visible part after the "[Somebody] whispers:" text. If it's the entire string, the start of the message would be the color formatting for the name of the person whispering you. (Whether it's the entire string or some substring of it depends on WIM.)
Thank you for your responses - removing the ^ anchor AND the .* from the end of the string ended up providing the correct behavior. Apparently WIM looks for any occurrence of the specified text to suppress. The example filters that are provided with the add on "^YOU ARE THE BOMB!" and "^LVBM" used the ^ but apparently don't need it either.
So for anyone wondering - a simple "<Not Well Fed>" in the filters will suppress the messages from RaidBuffStatus from appearing in WIM.