Regular Expressions 101

Community Patterns

1...56789...173

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\[(\w+|\W*?:\w+|\W*?)*\]
/

Description

replace token like [foo:bar:ba zz]

Submitted by anonymous - 9 years ago