Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-03-02 18:54
Updated·2021-03-02 22:34
Flavor·PCRE (Legacy)

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

Description

Define variables in existing text documents. One variable per line

Submitted by Janelle Weber