views:

22

answers:

2

Hi, i would like to get everything inbetween &v= and "> using a regex expression,

NSString *YouTubeRegex =  @"/amp;v=([^(\">)]+)/";  

But that regex is not returning any matches ? i know the coding is correct just not the regex expression any help ?

Thanks

A: 

Assuming the regex engine is Perl-like:

"/&v=(.*)>/"

should do the trick.

alpha123
Sorry i got no matches again
A: 

Try this :

/amp;v=(.+?)">/

http://www.rubular.com/r/Lqb63CsN2p

Colin Hebert