Skip to content

Instantly share code, notes, and snippets.

@antonagestam
Created September 24, 2013 00:31
Show Gist options
  • Save antonagestam/6678883 to your computer and use it in GitHub Desktop.
Save antonagestam/6678883 to your computer and use it in GitHub Desktop.
Replace Django url tags with > 1.5 syntax
\{% url (?!(?:\'|\"))(.*?)( .*?) ?%}
{% url '$1'$2 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment