Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
[\S]*(?:\[%)(\w+)(?:%])(?:(?:[^\S\n]*=[^\S\n]*([^\n]*[\S])))?
/
gm

Description

Define variables in existing text documents. One variable per line

Submitted by Janelle Weber - 4 years ago (Last modified 4 years ago)