I am using the following regex for validating youtube video share url\'s.
var valid = /^(http\\:\\/\\/)?(youtube\\.com|youtu\\.be)+$/; alert
Format for YouTube videos has changed. This regex works for all cases:
^(http(s)??\:\/\/)?(www\.)?((youtube\.com\/watch\?v=)|(youtu.be\/))([a-zA-Z0-9\-_])+
Tests here.