word-boundaries

regex help with word boundaries (need exception)

given this text: hello-world I can match it with this regex: hello\-.+?\b The catch is if I have this: hello-world-howyadoing that second dash is consider a word boundary, so the match ends at 'world' How do I say 'stop at next word boundary UNLESS that word boundary is a dash' in regex? This is in .js, btw. ...