Last active
December 15, 2015 00:58
-
-
Save methyl/5176219 to your computer and use it in GitHub Desktop.
Regular expression for changing img to image_tag
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
<img src="images\/(.*.jpg)" width="(\d*)" height="(\d*)" alt="(.*)"> | |
<%= image_tag '$1', size: '$2x$3', alt: '$4' %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment