Regular Expressions 101

Sponsors

Library entries

1
pcre

sushiroles

some sushi role
Submitted by anonymous - 8 years ago
-6
javascript

n.o

nao
Submitted by Flávio - 8 years ago
1
pcre

Test prioritized match

no description available
Submitted by anonymous - 8 years ago
-3
pcre

mama

no description available
Submitted by anonymous - 8 years ago
1
pcre

test

no description available
Submitted by Honza Břečka - 8 years ago
1
python

Matching url

no description available
Submitted by anonymous - 8 years ago
1
javascript

Demo

no description available
Submitted by Tensibai - 8 years ago
1
pcre

foobar

no description available
Submitted by anonymous - 8 years ago

youtube links in wp/embed context

Vote

1

Regular Expression
pcre

/
(?<=(?:\[embed\])|(?:\[embed\]\s)|(?:))(https?:\/\/)(:?www\.)?(:?youtube\.com\/watch|youtu\.be\/)([\w\?=\&]+)(?=(?:\[\/embed\])|(?:\s\[\/embed\])|(?:))
/
gims

Description

Loading markdown...
Submitted by anonymous - 8 years ago