var testStr = "sometext-20202"var splitStr = testStr.substring(testStr.indexOf('-') + 1);
↧
Answer by Kanke for Get everything after the dash in a string in JavaScript
↧
var testStr = "sometext-20202"var splitStr = testStr.substring(testStr.indexOf('-') + 1);