Community Patterns

Community Library Entry

2

Regular Expression
Created·2023-10-23 21:47
Flavor·Rust

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

Description

not fully featured, but simple.

Submitted by Jakersnell