Regex to find anything but a string?

Asked Dec 14, 2020·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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?

1 reply