title: Splitting a string by list of indices
body: <p>I want to split a string by a list of indices, where the split segments begin with one index and end before the next one. </p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>s = 'long string that I want to split up'
  indices = [0,5,12,17]
  parts = [s[index:] for index in indices]
  for part in parts:
      print part
  </code></pre>
  
  <p><strong>This will return:</strong>  </p>
  
  <blockquote>
    <p>long string that I want to split up<br>
    string that I want to split up<br>
    that I want to split up<br>
    I want to split up</p>
  </blockquote>
  
  <p><strong>I'm trying to get:</strong></p>
  
  <blockquote>
    <p>long<br>
    string<br>
    that<br>
    I want to split up</p>
  </blockquote>