Skip to content
Advertisement

Vimeo video link regex

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

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement