I would like to split the following string at each letter using String.prototype.split(/[a-zA-Z]/):
'M 10 10L 150 300'
The result:
[ "", " 10 10", " 150 300" ]
But I want to receive this:
[ "", "M 10 10", "L 150 300" ]
What is the fastest way to get that result using JavaScript?