I'm using this regex to get the Vimeo video ID from an url:
/\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i
However, this regex seems to have some typo and issue when I try to valide it thanks to JSLint for example:
Expected a regexp factor and instead saw ')'.
I can't find where the issue is exactly.
JSLint is complaining about the pipe on
video\/|
, it's safe to ignore this error.