Last active
August 8, 2017 20:33
-
-
Save MilenFrom/e798c7642cefb45121ae75b87a0cbb84 to your computer and use it in GitHub Desktop.
Regex patterns (facebook profile, vimeo, youtube etc..)
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
/* | |
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