I’m having issues with blacklist and with the whitelist for url. These seem straightforward but yet they don’t seem to work properly for me.
You can see that I blocked “dot*com” in the blacklist to block this particular spam message getting around my URL filter. But you can see that it didn’t prevent the message.
I believe the wildcard character (*) only works when it’s at the end of a word, if you want to match what was sent in your chat, using “dot com” would have worked.
Had a look at the advanced filters page and it’s not saying a lot about REGEX.
Which syntax does it use please (as there are a few slightly different ones).
For help on the pattern and eventual flags/modifiers see the RegExp link above.
The only modifier you might need is “i” for case-insensitive matches, the others are a bit useless in our context.
For the pattern you do it like usual, so if you want to match “dot com” and “dotcom” for example, the pattern will be: /dot\s?com/, then for Nightbot to work with it you just need to add a tilde (~) before the pattern: ~/dot\s?com/, and if you want it to match “DOT COM” as well as “DOTCOM” too, you can add the “i” modifier: ~/dot\s?com/i
Yep, that said, if you want to account for any character(s) that could be placed between the “dot” and “com” (including the lack of one), you can do the simpler: ~/dot.*com/i