Created
July 20, 2018 13:47
-
-
Save FelipeCortez/d532e8712a489576ebdfcfd252737d0f to your computer and use it in GitHub Desktop.
href to url_for (spacemacs / regexp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/'<,'>s/href="\([^"]*\)"/href="{{ url_for('static', filename='\1') }}"/g | |
copy from minibuffer with C-x h + M-w (https://emacs.stackexchange.com/a/37181) | |
paste with C-y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment