title: Parse (split) a string in C++ using string delimiter (standard C++)
body: <p>I am parsing a string in C++ using the following:</p>
  
  <pre><code>using namespace std;
  
  string parsed,input="text to be parsed";
  stringstream input_stringstream(input);
  
  if (getline(input_stringstream,parsed,' '))
  {
       // do some processing.
  }
  </code></pre>
  
  <p>Parsing with a single char delimiter is fine. But what if I want to use a string as delimiter.</p>
  
  <p>Example: I want to split:</p>
  
  <pre><code>scott&gt;=tiger
  </code></pre>
  
  <p>with <code>&gt;=</code> as delimiter so that I can get scott and tiger.   </p>