Regex to isolate id
<p>I would like to have a php function that will strip any input and keep only a numeric ID, 36816268 in the example below. </p>

<p>The input can be something like this:</p>

<pre><code>&lt;iframe src="http://player.vimeo.com/video/36816268" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;
</code></pre>

<p>or like this</p>

<pre><code>&lt;iframe src="http://player.vimeo.com/video/36816268" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;&lt;p&gt;&lt;a href="http://vimeo.com/36816268"&gt;ABCinema&lt;/a&gt; from &lt;a href="http://vimeo.com/eeseitz"&gt;Evan Seitz&lt;/a&gt; on &lt;a href="http://vimeo.com"&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;
</code></pre>

<p>I can strip the first part as</p>

<pre><code>preg_match('%.*http://player.vimeo.com/video/%im', $subject)
</code></pre>
