How do I parse an ID from a Vimeo URL in JavaScript?
The URL will be entered by a user, so I will need to check that they have entered it in the correct format.
I need the ID so that I can use their simple API to retrieve video data.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As URLs for Vimeo videos are made up by
http://vimeo.com/followed by the numeric id, you could do the following