Vimeo视频链接正则表达式 [英] Vimeo video link regex
本文介绍了Vimeo视频链接正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
据我所知,该方案是只需 http://vimeo.com/A_NUMBER
,因此请尝试 http://(www \。)?vimeo\.com /( \d +)
。如果您不需要以 http://
为前缀的链接,则可以省略整个 http://(www \。 )
位。
Anybody got the regex for vimeo video links to extract them from a pragraph for use in php? Can't seem to find a proper one for the latest vimeo url scheme
解决方案
As far as I can tell, the scheme is just http://vimeo.com/A_NUMBER
, so try http://(www\.)?vimeo\.com/(\d+)
. If you don't need links to be prefixed by http://
, you can leave off the whole http://(www\.)
bit.
这篇关于Vimeo视频链接正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文