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
Copying a Vimeo video linkSelect the URL for the Vimeo video in the address bar of your web browser, right-click and select Copy.
Linking to a specific part of a video Just add #t= followed by the timecode of where you'd like playback to begin. By adding #t=3m13s to the end of the URL, the link automatically triggers playback to begin three minutes and thirteen seconds into the video.
Vimeo have 4 different public video links
vimeo.com/[Video ID]
vimeo.com/channels/[Channel]/[Video ID]
vimeo.com/groups/[Group]/[Video ID]
player.vimeo.com/video/[Video ID]
/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With