Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

youtube video regex

^(?:https?:)?(?://)?(?:youtu.be/|(?:www.|m.)?youtube.com/(?:watch|v|embed)(?:.php)?(?:?.*v=|/))([a-zA-Z0-9\_-]{7,15})(?:[?&][a-zA-Z0-9\_-]+=[a-zA-Z0-9\_-]+)*(?:[&/#].*)?$
 
PREVIOUS NEXT
Tagged: #youtube #video #regex
ADD COMMENT
Topic
Name
7+5 =