add regex.md file for useful regex commands

Changes to be committed:
	new file:   share/templates/readmes/regex.md
This commit is contained in:
Ronny Abraham 2017-08-03 07:50:08 +03:00
parent 152b5658a9
commit 6c757d0343

View 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