title: C++ how to get substring after get position of its index
body: <p>I am trying to parse <a href="http://sg.finance.yahoo.com/q?s=USDSGD=X" rel="nofollow">this page</a>!</p>
  
  <pre><code>string str2 ("&lt;span class=\"time_rtq_ticker\"&gt;&lt;span id=\"yfs_l10_usdsgd=x\"&gt;");
    size_t found;
  
    // different member versions of find in the same order as above:
    found=sdata.find(str2);
    if (found!=string::npos)
      cout &lt;&lt; "first 'needle' found at: " &lt;&lt; int(found) &lt;&lt; endl;
  </code></pre>
  
  <p>How can i obtain the Currency rate after i get the position of "needle" which is the pattern, i want it stop parsing after </p>
  
  <p>Sorry i am doing this for a small project of mine, not commercial, just some mini work</p>