I am trying to split string in JavaScript, but I am not successful.
JavaScript code:
var string = TestApplication20 Application200;
var parts = str.match(/(\d+)(\D.+)/).slice(1);
var id = parts[0];
I need to retrieve 200 from the string, but I am getting 20 as the result.
Please help me where I am doing wrong.
id = parts[1];?