I have a PHP script which splits strings into arrays using prey_split. The preg_split code is:
preg_split("~(?<!\*):~", $val);
Which essentially splits the string where there is a colon, without a preceding asterisk.
For example: "h*:el:lo"
turns into array("h*:el", "lo")
This process is quite resource intensive and slow when splitting large amounts of strings. Is there a faster method to achieve this?