Can I whitelist specific words?

I want to make a emoteonly mode, that is for ffz emotes.
I knew nightbot blacklist filter supports regex, so I thought I can make a regex that checks if there’s any text that is not an ffz emote, and can put the regex in the list.

It was not. It’s not working. So I want to ask if it’s possible.
Here’s my regex in the blacklist:
~/\b(?!many|ffz|emotes|separated|by|pipe|letters)\b\w+/

I tried something similar:

(?:^|\h)(?!(DxCat|FutureMan)(?=\h|$))

I know that the regex blacklist filter rules work because I can use very simple ones, but is there something special about these expressions? Can zero-length assertions not be used?

Sorry for the delay. We use re2 for parsing regex (as it is generally a much safer regex implementation), which means we do not support backreferences and lookahead assertions.

This topic was automatically closed after 13 days. New replies are no longer allowed.