I have the following string
$string = "18/05-01/06 01/06-06/07 06/07-22/08 22/08-14/09 DR Record + 2 21.47 20.24 27.15 20.24 BE Record + 2 24.05 22.68"
I would like to split it at the first letter found (the letter varies each time). I found a similar question that had the following example
$split = explode('-', 'orange-yellow-red',2);
echo $split[1]; //output yellow-red
But this is assuming you know what the letter is. Is there a way to specify any letter? I've used preg split before but that can't limit and also i'm not that good with regex.
If explode would work with regex then something like this may work, but this is just an example as this would not work.
$string = "18/05-01/06 01/06-06/07 06/07-22/08 22/08-14/09 DR Record + 2 21.47 20.24 27.15 20.24";
$split = explode([A-Za-z], $string,2);