Get everything after the dash in a string in javascript
<p>What would be the cleanest way of doing this that would work in both IE and firefox.</p>

<p>My string looks like this:  sometext-20202</p>

<p>Now the 'sometext' and the integer after the dash can be of varying length.</p>

<p>Should I just use substring and index of or is the other ways?</p>
