Regular Expressions 101

Sponsors

Library entries

2
pcre

get Youtube & Vimeo id

grab youtube & vimeo id
Submitted by mi-ca.ch - 6 years ago
2
pcre

find colon inside a tag

no description available
Submitted by RCVS - 6 years ago
2
pcre

url

took me way to long
Submitted by timmyRS - 6 years ago
2
pcre

regex1

no description available
Submitted by anonymous - 6 years ago
2
pcre

Version Number

no description available
Submitted by anonymous - 6 years ago
2
pcre

parse username with @ mention

no description available
Submitted by Laracasts - 6 years ago
2
pcre

zip Ile de France

no description available
Submitted by anonymous - 6 years ago
2
pcre

Brazilian number phone

no description available
Submitted by Marcos André - 6 years ago
2
pcre

days_and_weeks

no description available
Submitted by anonymous - 6 years ago

best youtube id match ( iframe embed replace ready )

Vote

4

Regular Expression
pcre

/
(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*
/
gim

Description

Loading markdown...
Submitted by mi-ca.ch - 4 years ago