Regular Expressions 101

Community Patterns

/static/ finder, for django replacement

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\b(src|href)="\/static\/([^"]*)"
/
gm

Description

replace /static/ sources with the django {% static %} tags

Submitted by anonymous - 3 years ago