modified addParam to discard a param with no regex instead of throw exception