I need to get only the ID of a vimeo URL.

```
http://vimeo.com/68149082

```

I need:

```
68149082

```

In jQuery I am doing this:

```
var videoSpan =  jQuery(".is-expanded").find("span.video");
var iframe = $('<iframe/>', {
        'frameborder' : 0,
        'class' : 'embed-responsive-item',
        'src' : 'http://player.vimeo.com/video/'+ videoSpan.data("vimeoid")
    });
videoSpan.replaceWith(iframe);

```

The `vimeoID` is generated by a field which I manually populate by inserting only the ID number. But I need to be able to place the whole vimeo URL `http://vimeo.com/68149082`

Then strip out the URL and only grab the ID for the php output:

```
<span class="video loading clearfix" data-vimeoid="<?php echo the_field('vimeoID') ?>"></span>

```

Therefore I need somehow to be able to strip the ID from `http://vimeo.com/68149082` and place it in `videoSpan.data("vimeoid")`