title: How to reversely strtok a C++ string from tail to head?
body: <p>I think I need a <strong>reverse</strong> version of strtok, like:</p>
  
  <pre><code>char* p = rstrtok(str, delimeters);
  </code></pre>
  
  <p>For example, sequentially get the <em>position</em> of <code>'-'</code>, <code>'_'</code> and <code>'+'</code> in the string "hello+stack_over-flow" using a delimeter set of "+_-"</p>
  
  <p>I only care about the <em>delimeters</em>, and their <em>position</em>, (not the content between), so I guess the <code>boost::split_iterator</code> is not appropriate here.</p>
  
  <p>Is there any existing utility function I can leverage? or any solution to deal with this kind of situation?<br>
  Furthermore, since I am doing C++, is there any convenient approach to avoid this old fashion C?</p>
  
  <p>(I searched "reverse strtok" but merely get "stack over flow" to "flow over stack" stuff...)</p>