Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-10-30 10:38
Flavor·PCRE (Legacy)

/
\[(.*?[^\\])\]
/
gm
Open regex in editor

Description

This regex allows to match all in square brackets with ability to escape square brackets by using "\"

Submitted by anonymous