Skip to content

Instantly share code, notes, and snippets.

@damog
Created May 23, 2009 13:47
Show Gist options
  • Save damog/116632 to your computer and use it in GitHub Desktop.
Save damog/116632 to your computer and use it in GitHub Desktop.
@victorduwon's:
Find: '(@[a-zA-Z0-9.-]+\\)'
Replace: '<a href=\"twitter.com/:\\1\">\\1</a>'
@damog's:
Find: '@(\w+)'
Replace "<a href=\"http://twitter.com/\1\">\1</a>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment