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 integer after the dash can be of varying length.

Should I just use substring and index of or are there other ways?

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *