0

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

user393273
  • 1,430
  • 5
  • 25
  • 48

2 Answers2

0

Assuming the regex engine is Perl-like:

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

should do the trick.

Peter C
  • 6,219
  • 1
  • 25
  • 37
0

Try this :

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

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

Colin Hebert
  • 91,525
  • 15
  • 160
  • 151