Fix regex to allow negative numbers