Posted By

sjasliek on 03/14/12


Tagged


Versions (?)

Youtube preg


 / Published in: PHP
 

Get youtube id (v-code)

  1. preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#", $link, $matches);

Report this snippet  

You need to login to post a comment.