Created
July 17, 2016 16:34
-
-
Save johnsardine/5d25ccf611231d5db8f3fad23e7e82fe to your computer and use it in GitHub Desktop.
Regex match Twitter/Instagram mention, hashtag and link
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
// In RegExr http://regexr.com/3dqqv | |
/([@][A-z]+)|([#][A-z]+)|((?:(?:https?|ftp):\/\/|www\.)[^\s/$.?#].[^\s]*)/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment