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
the correct order of the brackets
Open Workspace
PCRE (Legacy)
Match
Created 2016-06-14 10:50
0
Regular Expression
/
^
(
[^
()[
\]
{}<>
]
*
)(
\(
(
(?1)(?2)
*
)*
\)
|
\[
(?3)
*
\]
|
\<
(?3)
*
\>
|
{
(?3)
*
\}
)
(?1)
$
/
Description
Check the correct order of the brackets (),<>,{},[]
Submitted by
Korniychuk Anton<ancor.dev@gmail.com>