Regular Expressions 101

Find Matching Parenthesis, Brackets, and Curly Brackets

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

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

Description

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

Submitted by Matthew Hiebing