I need to get the vine video id from the url
so the output from link like this
be like this
bXidIgMnIPJ
I tried to use code form other question here for Vimeo (NOT VINE) Get img thumbnails from Vimeo?
This what I tried to use but I did not succeed
$url = 'https://vine.co/v/bXidIgMnIPJ';
preg_replace('~^https://(?:www\.)?vine\.co/(?:clip:)?(\d+)~','$1',$url)