Regex to find anything but a string?

Twitch has emote only mode and sub only mode. I want to make a troll mode called MonkaSTEER only mode.

Nightbot will delete any message that contains anything but MonkaSTEER.

I can’t figure it out.

I tried ^(?!MonkaSTEER)*. But regexr says no match found.

If someone messages “hello how’s it going” then delete.

If someone says monkaste then delete.

Hello MonkaSTEER hi > delete.

How can I regex for messages that contain anything but MonkaSTEER?

Hey @Joeyfow!

It’s not perfect, but that should do the job: /[^MonkaSTEER]\s?/
For more info on how to write a RegExp.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.