title: Does OCaml have String.split function like Python?
body: <p>I am using this to split strings:</p>
  
  <pre><code> let split = Str.split (Str.regexp_string " ") in
     let tokens = split instr in
   ....
  </code></pre>
  
  <p>But the problem is that for example here is a sentence I want to parse:</p>
  
  <pre><code>pop     esi
  </code></pre>
  
  <p>and after the split it turns to be (I use a helper function to print each item in the <code>tokens</code> list):</p>
  
  <pre><code>item: popitem: item: item: item: esi
  </code></pre>
  
  <p>See, there are <strong>three spaces</strong> in the token list.</p>
  
  <p>I am wondering if there is a <code>string.split</code> like in Python which can parse <code>instr</code> this way:</p>
  
  <pre><code>item: popitem: esi
  </code></pre>
  
  <p>Is it possible?</p>