Published
- 1 min read
vimeo id regex
The solution for this is noted below
vimeo id regex
Solution
var subject = 'https://vimeo.com/195940605'
var result = subject.match(
/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i
)
document.write(result[0])
Try other methods by searching on the site. That is if this doesn’t work