small regex fix for negative values