Open ktnjared opened 3 months ago
To help fine-tune filtering and reduce clutter by accomidating for things like plurals, leetspeak, shorthand, and other variations.
string: (?i)\bm(icro)?(\$(.*\b)?|soft[[:alnum:]]{1,}|shaft.*\b|sludge\b) (Regex101 sample)
(?i)\bm(icro)?(\$(.*\b)?|soft[[:alnum:]]{1,}|shaft.*\b|sludge\b)
It would allow:
MS
Microsoft
microsoft
Microsoft's
While filtering the following patterns
Microsofties
Microshafted
Microsludge
M$
Micro$oft
Micro$ofties
Micro$hafted
Micro$ludge
M$ Office
m$
micro$oft
micro$ofties
micro$hafted
micro$ludge
m$office
Futher regex string examples can be found at https://urre.github.io/mutebot/.
While the most recent version doesn't add regex support, it does improve content parsing so a muted word like "test" will apply to "Test", "Test's", "'Test'", etc. which should hopefully help in the meantime!
To help fine-tune filtering and reduce clutter by accomidating for things like plurals, leetspeak, shorthand, and other variations.
Example
string:
(?i)\bm(icro)?(\$(.*\b)?|soft[[:alnum:]]{1,}|shaft.*\b|sludge\b)
(Regex101 sample)It would allow:
MS
Microsoft
microsoft
Microsoft's
While filtering the following patterns
Microsofties
Microshafted
Microsludge
M$
Micro$oft
Micro$ofties
Micro$hafted
Micro$ludge
M$ Office
m$
micro$oft
micro$ofties
micro$hafted
micro$ludge
m$office
Futher regex string examples can be found at https://urre.github.io/mutebot/.