title: Get specific text from a string java script
body: <p>I m working with strings in java script, for e.g if i have the below string:</p>
  
  <pre><code>str = "miniprofile-container http://www.linkedin.com/miniprofile?vieweeID=8573&amp;context=anet&amp;view"
  </code></pre>
  
  <p>i want the ID number "8573" from this type of strings. They are of different length but have the same struct as the above. So kindly help me in achieving it. </p>
  
  <p>I may use the strcpy function, but it will not be a generic approach</p>