fix regex in router parsing