Regular Expressions 101

Library entries

Grab text in double square brackets (excluding triple)

Vote

0

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by Petah - 8 years ago