Created
September 23, 2016 17:45
-
-
Save alatas/a0294e17076f1809c0eb7411b792af2b to your computer and use it in GitHub Desktop.
Twitter Mention Regex
This file contains 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)@([a-zA-Z0-9_]*[a-zA-Z0-9_]+)\w* | |
Replace: <a href="https://twitter.com/$1" target="_blank">@$1</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment