Handle negative numbers correctly in regex version