add regex.md file for useful regex commands
Changes to be committed: new file: share/templates/readmes/regex.md
This commit is contained in:
parent
152b5658a9
commit
6c757d0343
1 changed files with 9 additions and 0 deletions
9
share/templates/readmes/regex.md
Normal file
9
share/templates/readmes/regex.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# useful regex commands
|
||||
|
||||
## convert href to static
|
||||
|
||||
`.s/href="\([^"]\+\)"/href="{% static '\1' %}"`
|
||||
|
||||
use when **href="/some/link/file.css"** if the
|
||||
|
||||
quotes are single quotes, then convert them to double
|
||||
Loading…
Add table
Reference in a new issue