I have the following 2 types of lat/long strings
2154S15002E
215422N1500232E
I wish to split the string on the N or the S, the following works but it drops the N or S so I get an rp array of 2154 15002E, when i want 2154S 15002E
var rp = rPoint.split(/\s*(?:N|S)\s*/);
How do I split and keep the āSā? Or is there a better way than split?
Thank you