Regular Expressions 101

Community Library Entry

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 - 10 months ago (Last modified 9 months ago)