How can I split a string in Java and retain the delimiters?
<p>I have this string (Java 1.5):</p>

<pre><code>:alpha;beta:gamma;delta
</code></pre>

<p>I need to get an array:</p>

<pre><code>{":alpha", ";beta", ":gamma", ";delta"}
</code></pre>

<p>What is the most convenient way to do it in Java?</p>
