Skip to content

Instantly share code, notes, and snippets.

@bbcoimbra
Created November 23, 2012 10:18
Show Gist options
  • Save bbcoimbra/4134904 to your computer and use it in GitHub Desktop.
Save bbcoimbra/4134904 to your computer and use it in GitHub Desktop.
replace <li>text</li> by <li><%= link_to "text", "#" %></li>
s/\(<li>\)\([^<]\+\)\(<\/li>\)/\1<%= link_to "\2", "#" %>\3/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment