I have a series of strings in the form of
10a99b5c
55
2a3b1
g
How can I split the string by the characters (which always appears as a single character between numbers or in the beginning/end of the string)
array([0] => 10a99b5c, [1] => 10, [2]=> a99, [3] => b5, [4] => c),
array([0] => 55, [1] => 55),
array([0] => 2a3b1, [1] => 2, [2] => a3, [3] => b1),
array([0] => g, [1] => g),
The output format is not important, I can handle, I just have no idea what sort of regex pattern can do the trick (even a hint is sufficient).
I do this with preg_replace_callback where I use the digits found for each character for a set of calculations.