Regex patterns (facebook profile, vimeo, youtube etc..)
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
/* | |
Facebook - /((http|https):\/\/|)(www\.|)facebook\.com\/[a-zA-Z0-9.]{1,}/ | |
Twitter - /((http|https):\/\/|)(www\.|)twitter\.com\/[a-zA-Z0-9.]{1,}/ | |
Instagram - /((http|https):\/\/|)(www\.|)instagram\.com\/[a-zA-Z0-9.]{1,}/ | |
IMDB url - /((http|https):\/\/|)(www\.|)imdb\.com\/[a-zA-Z0-9.]{1,}/ | |
Vimeo - /((http|https):\/\/|)(www\.|)vimeo\.com\/[a-zA-Z0-9.]{1,}/ | |
YouTube - /((http|https):\/\/|)(www\.|)youtube\.com\/[a-zA-Z0-9.]{1,}/ | |
@TODO: Move those to regxr.com, or may be codepen, eh... | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment