Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(?:http(?:s)?:\/\/)?(?:player.|www\.)?(facebook\.com|vimeo\.com|ebaumsworld\.com|youtu(?:be\.com|\.be|be\.googleapis\.com)|liveleak\.com|break\.com)\/(?:video\.php(?:\?v=)|media\/embed\/|video\/watch\/|video\/|embed\/|watch\?v=|v\/)?(?:(?:view|ll_embed)\?)?(?:(f|i)=)?(?:video\/|(?:.*-))?([A-Za-z0-9._%-]*)(?:\&\S+)?
/

Description

supported youtube, vimeo, face liveleak, break, ebaums, facebook support url and iframes

Submitted by Misthero - 10 years ago