Is there way to keep delimiter while using php explode or other similar functions?
<p>For example, I have an article should be splitted according to sentence boundary such as "<code>.</code>", "<code>?</code>", "<code>!</code>" and "<code>:</code>".</p>

<p>But as well all know, whether <code>preg_split</code> or <code>explode</code> function, they both remove the delimiter. </p>

<p>Any help would be really appreciated! </p>

<p><strong>EDIT:</strong></p>

<p>I can only come up with the code below, it works great though.</p>

<pre><code>$content=preg_replace('/([\.\?\!\:])/',"\\1[D]",$content);
</code></pre>

<p>Thank you!!! Everyone. It is only five minutes for getting 3 answers! And I must apologize for not being able to see the PHP manual carefully before asking question. Sorry. </p>
