I have a coordinate in the format
43-09-42.0000N
I want to split it into its component parts
43 09 42.000 N
I'm using.
$parts = preg_split('/[-]/', $LON);
and it gives me
Array ( [0] => 43 [1] => 09 [2] => 42.0000N )
But I can't figure out who to get the Letter on the end to spilt out.
Any help appreciated I am a complete dope when it comes to regex.