From 6c757d0343cf5228e236532dacc8258d170583c1 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Thu, 3 Aug 2017 07:50:08 +0300 Subject: [PATCH] add regex.md file for useful regex commands Changes to be committed: new file: share/templates/readmes/regex.md --- share/templates/readmes/regex.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 share/templates/readmes/regex.md diff --git a/share/templates/readmes/regex.md b/share/templates/readmes/regex.md new file mode 100644 index 0000000..379a19d --- /dev/null +++ b/share/templates/readmes/regex.md @@ -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 \ No newline at end of file