Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\[([\d\w]+)\]
/
g

Description

What it captures

Allows to capture 'Square Brackets' and any characters in the brackets

Submitted by abrad1212 - 7 years ago