From: Stefano Crocco Date: 2008-02-25T03:17:38+09:00 Subject: Re: Get value from string Alle Sunday 24 February 2008, Luca Roma ha scritto: > I have a string that content a link of a youtube page . > Like: > http://it.youtube.com/watch?v=PupR5V9aE2s&test=1 > > i want get the value of v: > PupR5V9aE2s > > How i can do? > Thanks If you know that the part of the string you want is delimited by v= and &, you can use this: str.match(/v=([^&]*)/)[1] Stefano