Last active
September 23, 2016 17:38
-
-
Save alatas/fa40eba02240a5b2adca0f5d2eeb79cc to your computer and use it in GitHub Desktop.
Twitter Hashtag Regex
This file contains hidden or 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
Pattern: (?:\b|\B)#(\w*[a-zA-Z]+)\w* | |
Replace: <a href="https://twitter.com/hashtag/$1" target="_blank">#$1</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment