Regular Expressions 101

Library entries

Searching for bracketed fields and optional parameters

Vote

0

Regular Expression
javascript

/
\[(\w+):?(\w+)?\]
/
g

Description

Loading markdown...
Submitted by Andy Martin - 7 years ago