RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. tedcambron
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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 '.' ?


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials