What would be the cleanest way of doing this that would work in both IE and firefox.
My string looks like this: sometext-20202
Now the \'sometext\' and the
var testStr = "sometext-20202" var splitStr = testStr.substring(testStr.indexOf('-') + 1);