title: How to find a substring between parameters using c++
body: <p>How can I define a method which takes a string, let's say</p>
  
  <pre><code>asdfgsdfg:ijtij ijdfgh ija::saf 1999 bp
  </code></pre>
  
  <p>and returns the substring</p>
  
  <pre><code>ijtij ijdfgh ija::saf 1999
  </code></pre>
  
  <p>That is, I want all of the data between the first instance of a colon, until the bp character combination is found, at the end of the string.</p>