I know this has been posted before, but I’m kind of having a hardt time getting it to work properly. I’m using Nightbot in a youtube live chat, and I want to block certain languages.
I’ve added the following lines to the Blacklist word/phrases
But it does not seem to work.
Am I missing something?
THank you it’s working but pretty aggressively it takes everything. HAHAHHA
I assume you looked at this post?
Okay, then for Cyrillic use: /[\u0400-\u04FF]+/
And for Arabic use: /[\u0600-\u06FF]+/
To block further sets of ASCII characters, have a look there:
Public Unicode Character Map.
And to answer your question, yes, your last \ is likely causing an error, and you don’t need the $ either, also I don’t know what the ~ is doing there. Also the i modifier is to make the comparison case insensitive, so with this parameter you could only have uppercase or lowercase characters instead of the whole set,…
I didn’t get a reply from the person who was asking for it at the time so I didn’t know if it actually worked.
Have you made sure to set every RegExp on a separate line?
If yes and it’s not working, may I suggest replacing the
x with a
u, so like this:
It may be the mistake I’ve done at the time…
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.