Um... I suck at Regular Expressions (always have). But maybe:
...can be of some assistance. Otherwise, just wait, someone will be
alone momentarily with your regexp.
Ah what the hell... I'll throw up a regular expression (which is sure to
var test_string = 'one_two-three';
var _regexp = /(\w+)_(\w+)-(\w+)/;
That is basically the exact same thing you have. I am sure regexp gurus
can offer a better solution though, both in your example and mine.
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.