regex to parse a URL-type string in PHP

Posted by Gaurav on Stack Overflow See other posts from Stack Overflow or by Gaurav
Published on 2010-03-10T13:27:57Z Indexed on 2010/03/11 17:24 UTC
Read the original article Hit count: 215

Filed under:
|

I have a string like so:

http://www.youtube.com/v/Nnp82q3b844&hl=en_US&fs=1&

and I want to extract the

Nnp82q3b844

part of it i.e. the part between /v/ and the first &.

Is there and easy way to do this in PHP?

© Stack Overflow or respective owner

Related posts about regex

Related posts about php