If you like ASCII characters the most:
$parts = preg_split("/(?=[AZ])/", $str);
Demo
The construct (?= ..) is called lookahead [docs] .
This works if the parts only contain a capital symbol at the beginning. It gets more complicated if you have things like getHTMLString . This can be compared to:
$parts = preg_split("/((?<=[az])(?=[AZ])|(?=[AZ][az]))/", $str);
Demo
Felix Kling Jul 04 2018-11-11T00: 00Z
source share