Regular Expressions 101

Community Patterns

Find Matching Parenthesis, Brackets, and Curly Brackets

1

Regular Expression
ECMAScript (JavaScript)

/
\(\)|\[\]|\{\}
/
gm

Description

Given a string, find matching parenthesis, brackets, and/or curly brackets.

Submitted by Matthew Hiebing - 2 years ago