REGEX: Breaking Capital Letters
<p>hello need help in regex i use this to split strings with capital letters like OldMcDonald 
<code>preg_split('/(?=[A-Z])/', $data, -1, PREG_SPLIT_NO_EMPTY);</code> </p>

<pre><code>output 
[0] =&gt; Old 
[1] =&gt; Mc 
[2] =&gt; Donald 
</code></pre>

<p>now i need to split strings like MWTTH 
i need to tell the regex that a T with a letter H is one word how can i apply in my regex? </p>

<pre><code>need the output: 
[0] =&gt; M 
[1] =&gt; w 
[2] =&gt; T 
[3] =&gt; TH
</code></pre>

<p>when i tried </p>

<p><code>$array = preg_split('/(?=[A-Z][TH])/', $data, -1, PREG_SPLIT_NO_EMPTY);</code></p>

<p>Output is</p>

<pre><code>Array
(
    [0] =&gt; MTW
    [1] =&gt; F
    [2] =&gt; TH
)  
</code></pre>

<p><code>MTH</code> Does not break appart, No time to study regex now.</p>
