title: get id of url to echo into wordpress shortcode
body: <p>I have a url <a href="http://api.spreaker.com/download/episode/3360726.mp3?preroll=0&amp;commercials=0" rel="nofollow">http://api.spreaker.com/download/episode/3360726.mp3?preroll=0&amp;commercials=0</a> all O want to do is get the numbers right before the .mp3 so i can add it to a wordpress shortcode. url is coming from a rss feed. you can see example here <a href="http://thecasadefe.com/category/blog/spreaker/" rel="nofollow">http://thecasadefe.com/category/blog/spreaker/</a> right now it working cause I manually input the id in the shortcode but from rss feed i get url but i cant get the id out of url through php to echo into shortcode.</p>
  
  <p>here is my code: </p>
  
  <pre><code>    &lt;?php $enclosure = get_post_meta($post-&gt;ID , 'enclosure', $single = true);
      $media=explode(chr(10),$enclosure); ?&gt;
      &lt;?php if (!is_null($media)) : ?&gt;
      &lt;?php $url='&lt;a href="'.$media[0].'" rel="nofollow"&gt;'.$media[0].'&lt;/a&gt;';
      echo($url); ?&gt;
      &lt;?php endif; ?&gt;
  
      &lt;?php $mp3title=the_title(); ?&gt;
      &lt;?php $url=''.$mp3title.'';echo($url); ?&gt;
  &lt;?php echo do_shortcode("[spreaker type=standard width=100% autoplay=false episode_id=3161467]"); ?&gt;
  </code></pre>
  
  <p>any help is greatly appreciated.    </p>