Regular Expressions 101

Library entries

match brackets outside quotes

Vote

4

Regular Expression
javascript

/
\[\d*\]((?=[^"]*(?:"[^"]*"[^"]*)*$)(?=[^']*(?:'[^']*'[^']*)*$))
/
g

Description

Loading markdown...
Submitted by Jerry - 6 years ago