Regular Expressions 101

Community Patterns

Match any django block tag that is not a common one

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 - 3 years ago