Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Extract brazilian DDD and phone number
Open Workspace
PCRE (Legacy)
Substitution
Created 2018-04-03 15:06
-1
Regular Expression
/
(
\(
(
[^
)
]
*
)
\)
)(
\s
?
)(
(
[
0
-
9
]
{0,5}
)(
\-
)?(
[
0
-
9
]
{0,4}
)
)
$
/
g
Description
Extract brazilian DDD and phone number
Submitted by
Anderson Rodrigues