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
Find Matching Parenthesis, Brackets, and Curly Brackets
Open Workspace
JavaScript
Match
Created 2022-08-08 01:57
1
Regular Expression
/
\(\)
|
\[\]
|
\{\}
/
gm
Description
Given a string, find matching parenthesis, brackets, and/or curly brackets.
Submitted by
Matthew Hiebing