PHP - How to convert the YouTube URL with Regex

Posted by Mithun on Stack Overflow See other posts from Stack Overflow or by Mithun
Published on 2010-06-06T13:03:58Z Indexed on 2010/06/06 13:12 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

How can convert the below youtube urls

$url1 = http://www.youtube.com/watch?v=136pEZcb1Y0&feature=fvhl
$url2 = http://www.youtube.com/watch?feature=fvhl&v=136pEZcb1Y0

into

 $url_embedded = http://www.youtube.com/watch/v=136pEZcb1Y0

using Regular Expressions?

© Stack Overflow or respective owner

Related posts about php

Related posts about regex