regexkitlite match?
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 he开发者_高级运维lp ?
Thanks
Try this :
/amp;v=(.+?)">/
http://www.rubular.com/r/Lqb63CsN2p
Assuming the regex engine is Perl-like:
"/&v=(.*)>/"
should do the trick.
精彩评论