Regular Expressions 101

Community Patterns

2

UUID 4

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

US phone number

2

Regular Expression
PCRE2 (PHP >=7.3)

/
(\+?(\b1)?[\ .\/-]?((?(2)|(\b))|(\())\d{3}(?(?<=\(\d{3})\)|)[\ .\/-]?)?(?(1)|\b)\d{3}[\ .\/-]?\d{4}[\ ]?([xX][\ ]?\d{1,5})?\b
/
gm

Description

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