Given the following line:
var myString = "s1a174o10";
I would like to get the following result:
var s = 1; var a = 174; var o = 10;
Each letter of the string corresponds to the next number.
Keep in mind that the string is not static, here is another example:
var myString = "s1p5a100";
source share