regex to parse a URL-type string in PHP
- by Gaurav
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?