Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I am using this design. Parses all address options
if (preg_match("/^((https?:\/\/)?(w{0,3}\.)?youtu(\.be|(be|be-nocookie)\.\w{2,3}\/))((watch\?v=|v|embed)?[\/]?(?P<video>[a-zA-Z0-9-_]{11}))/si", $link, $matches)) {
return $matches['video'];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question