Regular Expressions 101

Community Patterns

Grab text in double square brackets (excluding triple)

0

Regular Expression
PCRE (PHP <7.3)

/
(\A|[^[])\[{2}[^[](?<content>[^]]+)[^]]\]{2}([^]]|\z)
/
gs

Description

no description available

Submitted by Petah - 10 years ago