-
-
Save mistralbkru/a1cc8b52fa598c9137b875e5e51cee63 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