get id video vimeo with regexp preg_match
I try to get the id video from an url of vimeo, but looking in the source code sometimes it comes like: http://vimeo.com/XXXXXXXXX and others like: http://player.vimeo.com/video/XXXXXXXXX I just get the id video, but it must be with regExp because I must parse a content from a blog and format like a facebook page does when we insert code html. This is the regExp that I made: /vimeo\.com\/(\w+\s*\/?)*([0-9]+)*$/i Can you help me? I appreciate all your help. PD: Sorry for my english Why not ask Vimeo about the video? http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/17892962 The above URL