Given the following string:
var myString = "s1a174o10";
I would like to have the following result:
var s = 1;
var a = 174;
var o = 10;
Each letter on the string matches the following number.
Keep in mind that the string is not static, here is another example:
var myString = "s1p5a100";