正则表达式kitlite 匹配吗?
我想使用正则表达式获取 &v=
和 ">
之间的所有内容,
NSString *YouTubeRegex = @"/amp;v=([^(\">)]+)/";
但是该正则表达式没有返回任何匹配项?我知道编码是正确只是没有正则表达式有任何帮助吗
?
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个:
http://www.rubular.com/r/Lqb63CsN2p
Try this :
http://www.rubular.com/r/Lqb63CsN2p
假设正则表达式引擎是类似 Perl 的:
应该可以解决问题。
Assuming the regex engine is Perl-like:
should do the trick.