Last active
February 9, 2017 19:59
-
-
Save lucasrcezimbra/4d06be0012f4f105ee98a6da891eaf2c to your computer and use it in GitHub Desktop.
Vim Regex Find and Replace
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
Substitui: | |
<link rel="stylesheet" href="css/font-awesome.min.css"> | |
por | |
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css %}"> | |
Find: | |
\(src\|href\)="\(\(img\|css\|js\)[^)]\{-}\)" | |
Replace: | |
s/\(src\|href\)="\(\(img\|css\|js\)[^)]\{-}\)"/\1="{% static '\2' %}"/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment