Php get parameter from SEO URL : <p>I have my seo url such as</p>

<blockquote>
  <p><a href="http://domain.com/product/export-grade-large-size-3-tier-organizer-shelf-and-non-woven-storage-box-with-cover-21665223" rel="nofollow">http://domain.com/product/export-grade-large-size-3-tier-organizer-shelf-and-non-woven-storage-box-with-cover-21665223</a></p>
</blockquote>

<p>at the tail of string there is a number represented an id, which I need it for DB processing, how can I separate and get the last id? I cannot use explode because it may have long string parameter with 'dash'.</p>

<p>thanks.  </p>
