let str = "[Account0].&[1]+[Account1].&[2]+[Account2].&[3]+[Account3].&[4]";
let numArray = str.match(/(\d+)/gi);
alert(numArray.join(','));
The resulting numbers are: 0,1,1,2,2,3,3,4
I am looking to remove all strings with numbers and special characters.
Can anyone help with a solution to get the output: 1,2,3,4
Thank you,
Rajasekhar