Regex Tester
/
\d{3}
-
\d{3}
-
\d{4}
/
g
i
m
Phone Number Pattern
Test String
Call me at
555-123-4567
or text
555-987-6543
anytime.
2 Matches
Match Results
Match 1
Index: 11-23
555-123-4567
Groups: 3
Match 2
Index: 33-45
555-987-6543
Groups: 3
Test Pattern
Generate Code
Cheat Sheet
Execution: 0.42ms