Regular Expressions 101

Community Patterns

1...34567...172

Rust Phone Number

1

Regular Expression
Rust

r"
\b[(]?(?P<areaCode>\d{3})[)]?[ .-](?P<phone>\d{3}[ .-]\d{4})\b
"
gs

Description

not fully featured, but simple.

Submitted by Jakersnell - 9 months ago