title: How to split string by more than one char in mongoDB
body: <p>I'm trying to split this string so i will be able to count how many words of the same length he contains with map reduce later.</p>
  
  <p>For example, for the sentence </p>
  
  <blockquote>
    <p>SUPPOSING that Truth is a woman--what then?
    I will get -</p>
  </blockquote>
  
  <pre><code>[
    {length:”1”, number:”1”}, 
    {length:”2”, number:”1”},
    {length:”4”, number:”3”},
    {length:”5”, number:”2”},
    {length:”9”, number:”1”}
  ]
  </code></pre>
  
  <p>How can i do this? </p>