Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created November 5, 2010 00:28
Show Gist options
  • Save bakkdoor/663454 to your computer and use it in GitHub Desktop.
Save bakkdoor/663454 to your computer and use it in GitHub Desktop.
str.gsub(/(\s+)@(\S+)@(\s+)/, "#{$1}*#{$2}*#{$3}").gsub(/(\s+)@(\S+)(\s+)/, "#{$1}**#{$2}**#{$3}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment