Regular Expressions 101

Community Patterns

2

UUID 4

PCRE2 (PHP >=7.3)
Detects any UUID 4 strings
Submitted by ShadowNox - 2 years ago

Discord ID:NAME#DISCRIM match

3

Regular Expression
PCRE2 (PHP >=7.3)

/
(?'ID'\d{15,23}):(?'NAME'.*?)#(?'DISCRIMINATOR'[0-9]{4})
/
gm

Description

Loading markdown...
Submitted by lanjt - 3 years ago