Regular Expressions 101

Community Patterns

Filter text inside square brackets and text before and after

0

Regular Expression
ECMAScript (JavaScript)

/
([^\[]*)\[(.*?)\]([^\[]*)
/
gm

Description

This can be used for templating

Submitted by anonymous - 4 years ago