hello guys,
I'm using youtube API to post videos to my website, this API needs only the vid ID which is to be posted.
Can anyone tell me how can i get a video ID from a youtube URL?

for example from these URLs i want only the red part:
youtube.com/watch?v=KQ6zr6kCPj8&ob=av3e
youtube.com/watch?v=pIOOwhmkoLo&feature=player_embedded

urls can contain different parameters but i want only the string between the "v=" till it meets an "&" or end of the string.

Thanks.