title: How do I include the split delimiter in results for preg_split()?
body: <p>I have this simple pattern that splits a text into periods:</p>
  
  <pre><code>$text = preg_split("/[\.:!\?]+/", $text);
  </code></pre>
  
  <p>But I want to include <code>. :</code> or <code>!</code> at the end of the array items.</p>
  
  <p>That is, now for "good:news.everyone!" I have:</p>
  
  <pre><code>array("good", "news", "everyone", "");
  </code></pre>
  
  <p>But I want:</p>
  
  <pre><code>array("good:", "news.", "everyone!", "");
  </code></pre>