Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\[(?:http(?:s)?(:\/\/)?)?(www\.)?discord\S*\]\(((?!discord)\S)*\)
/
gm

Description

This regex tries to mitigate some of the most common scam practices found in discord since the support of masking links.

Submitted by KifoPL - 10 months ago