Title |
Test
Find
Embedded YouTube Video
|
Expression |
(\"http:\/\/www\.youtube\.com\/v\/\w{11}\&rel\=1\") |
Description |
A simple regex to validate an embedded YouTube video. |
Matches |
a valid embedded YouTube video |
Non-Matches |
anything else |
Author |
Rating:
tedcambron
|
Source |
|
Your Rating |
|
Title: youtube link check
Name: Maksym Mikheienko
Date: 8/2/2010 5:41:04 AM
Comment:
found this one regexp:
^http:\/\/(?:www\.)?youtube.com\/watch\?(?=.*v=\w+)(?:\S+)?$
Title: 56
Name: 35
Date: 1/29/2010 1:47:39 AM
Comment:
356
Title: Almost...
Name: MM
Date: 7/3/2008 12:01:08 PM
Comment:
This looks good but the www is not necessary. http://fr.youtube.com/watch?v=xxxxxxx could also be a valid link. How could this be fixed to allow for anything valid to be entered between the second '/' and the first '.' ?