Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\[[^\[\]]*?\]
/
gm

Description

This expression selects any square brackets and the content inside it.

Exemple:

[DataTransfer] [<input>] [(anyText)]

Submitted by innnerception - 2 years ago