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:

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