Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\s*(?!(blocktrans|load|extends|trans|endblocktrans|if|endif|include|endblock|block)\b)
/
gm

Description

\s*(?!(blocktrans|load|extends|trans|endblocktrans|if|endif|include|endblock|block)\b)

Submitted by anonymous - 4 years ago