Regular Expressions 101

Community Patterns

0

for killerswim

.NET 7.0 (C#)
a
Submitted by anonymous - 9 months 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