Regular Expressions 101

Community Patterns

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 - 7 months ago