Posted on novembris 13th, 2013, 4:50 pm by admin
preg_match('#(?:http://)?(?:www\.)?(?:youtube\.com/(?:embed/|v/|watch\?v=)|youtu\.be/)([\w-]+)(?:\S+)?#', $string, $match);