Sorry kap, it was slightly broken.
The idea being to capture space delimited tokens, but ignore everything following a space and a colon. Turns out that $1- eliminates the colon, so I had to switch to $rawmsg instead of $1-. It was just written freehand as an example, untested.