title: parsing string with respect to string format |how
body: <p>I have ;</p>
  
  <pre><code> string  str = "";
  </code></pre>
  
  <p>in str, I store data is in following form "_ : _, _ "
  "_" can be just a word like "X" or a composition of words like "a sds 23 dsds 1"</p>
  
  <p>I want them parse it to three different string ;</p>
  
  <pre><code>in str       : X:y dfj kd kk,sdd 12 89 ++
  string parsed[i] ;
  in parsed[0] : X
  in parsed[1] : y dfj kd kk
  in parsed[2] : sdd 12 89 ++
  </code></pre>
  
  <p><strong>How</strong> can I do that over using c++ std::string features ? </p>