i have url: youtube.com/v/NRH2jEyiiLo&hl=en&fs=1&rel=0
And i need only code: NRH2jEyiiLo&hl.
preg_match($pattern, $url, $matches);
I use this pattern: $pattern = '@^([^/v/]+)?([^=]+)@i';
But why result is: "youtube.com/v/NRH2jEyiiLo"?
How drop "youtube.com/v/", thanks ;)