Regular Expressions 101

Community Patterns

1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 15 days ago
1

XC410

PCRE2 (PHP >=7.3)
QS
Submitted by anonymous - 23 days ago
1

check csv content

PCRE2 (PHP >=7.3)
a
Submitted by abc - 24 days ago

Phone number for all countries

2

Regular Expression
.NET 7.0 (C#)

@"
^(?<code>\+?\d{1,3})[-\s]{0,}(?<number>\(?\d{3}\)?[-\s]{0,}\d{3}[-\s]{0,}\d{2}[-\s]{0,}\d{2})$
"
gm

Description

Loading markdown...
Submitted by Alexander Smirnov - a year ago