Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-10-22 20:53
Flavor·ECMAScript (JavaScript)

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

Description

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

Exemple:

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

Submitted by innnerception