Home
Tester
Reference
About
Pattern
(\()?\d{3}(?(1)\))\d{7}
Input
(123)4567890
1234567890
123)4567890
(123)4567890 1234567890 123)4567890
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
2
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
0
(123)4567890
(
1
14
1234567890
empty string
(123)4567890
1234567890
123)4567890
empty string
(
whitespace
123)4567890