title: Split body of text into sentences but keep punctuation?
body: <p>I'm attempting to produce a human readable wiki-like difference between 2 bodies of html laden text. I'm using diff-lcs and the first step is separating the string (array of characters) into an array of sentences, but keep their punctuation.</p>
  
  <pre><code>"I am a lion. Hear me roar! Where is my cub? Never mind, found him.".magic_split(/[.?!]/)
  # =&gt; "I am a lion." "Hear me roar!" "Where is my cub?" "Never mind, found him."
  </code></pre>
  
  <p>This should do the trick</p>
  
  <pre><code>"I am a lion. Hear me roar! Where is my cub? Never mind, found him.".gsub(/[.?!]/, '\1|').split('|')
  </code></pre>
  
  <p>Except gsub appears to have trouble inserting the characters <code>.?!</code>. Instead it's returning this</p>
  
  <pre><code>"I am a lion| Hear me roar| Where is my cub| Never mind, found him|"
  </code></pre>
  
  <p>What's the easiest way to do a non-destructive split? As in it keeps the characters it splits by.</p>