Extract video ID and host name from Youtube URL
A regular expression to extract video ID and host name from a wide range of different youtube links. Built upon this foundation.
^(?:https?:\/\/)?(?:www\.)?(?:m\.)?((youtu\.be|youtube\.com)(?:\/embed\/watch\\?.+|\/watch\?v=|watch\?.+&v=|.))([\w-]{11})(?:.+)?$