doucong1992 2011-02-15 19:33
浏览 120
已采纳

Vimeo视频链接正则表达式

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

  • 写回答

5条回答 默认 最新

  • dourao1968 2011-02-15 19:39
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?