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
Use a regular expression of the form: \w-\d+ where a \w represents a word and \d represents a digit. They won't work out of the box, so play around. Try this.