what is the best way to retrieve id from android app link?
<p>what is the best way to retrieve id from android app link?</p>

<p>let say i have these link:</p>

<blockquote>
  <p><a href="https://market.android.com/details?id=com.prey&amp;hl=en" rel="nofollow">https://market.android.com/details?id=com.prey&amp;hl=en</a></p>
  
  <p><a href="https://market.android.com/details?id=org.prowl.wifiscanner&amp;feature=related_apps" rel="nofollow">https://market.android.com/details?id=org.prowl.wifiscanner&amp;feature=related_apps</a></p>
  
  <p><a href="https://market.android.com/details?id=com.asurion.android.mobilerecovery.sprint&amp;feature=related_apps" rel="nofollow">https://market.android.com/details?id=com.asurion.android.mobilerecovery.sprint&amp;feature=related_apps</a></p>
</blockquote>

<p>i just want to get the app id : com.prey or org.prowl.wifiscanner or com.asurion.android.mobilerecovery.sprint, whether or not user enter other params after the id</p>
