Skip to content

Instantly share code, notes, and snippets.

@mmagm
Created December 4, 2012 07:26
Show Gist options
  • Save mmagm/4201533 to your computer and use it in GitHub Desktop.
Save mmagm/4201533 to your computer and use it in GitHub Desktop.
replace rockets in ruby
(defun replace-rockets ()
(interactive)
(goto-char (point-min))
(while (re-search-forward ":\\([_A-Za-z0-9]+\\)[\t\n ]+=>" nil t)
(replace-match "\\1:")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment