I'm trying to find the best regexp to fetch vimeo video id from URL.
Example urls :
Update: I notice that this answer is getting some attention every now and then (through votes or comments). The answer is more than two years old, and likely the URL types supported are no longer up to date. I will not actively maintain this regex - it is merely intended as an answer to the question and hence only takes care of the formats listed there. Use this at your own risk, or - even better - use it merely as a starting point to develop your own regex based on an up-to-date and comprehensive list of URL formats.
This would be the full regex, which also ensures that the format is correct:
You can now retrieve the group name in capturing group
1 (if present), the album ID in capturing group
2 (if present) and the video ID in capturing group