Regular Expressions 101

Community Patterns

1...34567...884

Discord Invite Regexp

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(https?:\/\/)?(www\.)?(discord\.gg|(discordapp|discord)\.com\/invite)\/(\w+-?\w+)
/
ig

Description

a

Submitted by MinerPL - a year ago