Skip to content

Instantly share code, notes, and snippets.

@MilenFrom
Last active Aug 8, 2017
Embed
What would you like to do?
Regex patterns (facebook profile, vimeo, youtube etc..)
/*
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