I\'m trying to find the best regexp to fetch vimeo video id from URL.
Example urls :
https://vimeo.com/11111111
http://vimeo.com/1111111
For php, below code works for following urls
i.e. :
http://vimeo.com/88888888
http://player.vimeo.com/video/88888888
http://vimeo.com/channels/staffpicks/88888888
http://vimeo.com/groups/groupsname/88888888
PHP Code :
$vimeoUrl = 'http://vimeo.com/channels/channelsName/11111111';
$fetchVimeoIdArr = explode('/', $vimeoUrl);
$idCounter = count($fetchVimeoIdArr) - 1;
$vimeoId = $fetchVimeoIdArr[$idCounter];