Regular Expressions 101

Discord Anti Advertisement

1

Regular Expression
Rust

r"
(https://)?discord\.gg/[a-zA-Z0-9]+
"
gm

Description

Discord AutoMod Regex

Use this Regex with Discord's built-in automod to prevent all invite URLs. This will block discord.gg/ad but not .gg/ad

Consider seeing my "strict" version otherwise.

Submitted by dogknife - 5 months ago (Last modified 4 months ago)