Last active
December 15, 2015 05:19
-
-
Save m4tm4t/5208178 to your computer and use it in GitHub Desktop.
Regex for sublime text that replace css background url for Rails
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
/* | |
FIND WITH: url\(images\/([a-zA-Z\w+\-.]+)\)? | |
*/ | |
div { | |
background: url(images/ui-bg_glass_75_ffffff_1x400.png); | |
} | |
/* | |
REPLACE WITH: url(image-path("\1")) | |
*/ | |
div { | |
background: url(image-path("ui-bg_glass_75_ffffff_1x400.png")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment