I think this needs to be `msg.match[3]`, or the outer `( -(\d+\w+))` needs to be made non-capturing with `?:`.