I'm trying to find the best regexp to fetch vimeo video id from URL.
Example urls :
https://vimeo.com/11111111
http://vimeo.com/11111111
https://www.vimeo.com/11111111
http://www.vimeo.com/11111111
https://vimeo.com/channels/11111111
http://vimeo.com/channels/11111111
https://vimeo.com/groups/name/videos/11111111
http://vimeo.com/groups/name/videos/11111111
https://vimeo.com/album/2222222/video/11111111
http://vimeo.com/album/2222222/video/11111111
https://vimeo.com/11111111?param=test
http://vimeo.com/11111111?param=test
My current regexp which doesn't work:
/http:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/
Playground & Test here : http://jsbin.com/asuqic/1/edit?javascript,live