Help needed with Regex phrasing.

Werewolf

Probably not a real Werewolf
aa
Apr 12, 2011
873
309
So I am trying to use a regex based word censor to block LMAOBoX users on my TF2 server from being able to spam the chat by blocking out the phrase "LMAOBox". I have SMAC on the server to catch the cheaters, this is just to prevent the chat spam.

Here's the problem I need help with - I want to allow both "LMAO" and "Box" (as neither of them on their own are offensive) but I can't figure how to block the combined "Lmaobox" without also blocking the seperate "LMAO" and "Box".

This is what I was using before:
Code:
(\W|^)[Ll]{0,1}[Mm]{0,1}[Aa]{0,1}[Oo0]{0,1}[Bb]{0,1}[Oo0]{0,1}[Xx]{0,1}(\W|$)
And I tried:
Code:
(\W|^)[Ll]{0,1}[Mm]{0,1}[Aa]{0,1}[Oo0]{0,1}(\W|$)(\W|^)[Bb]{0,1}[Oo0]{0,1}[Xx]{0,1}(\W|$)
Neither worked.

I have been using this page for testing, but as I'm pretty new to using regex I can't figure out how I need to phase it correctly. Is there anyone out there familiar with Regex who could help solve this?