The capture group returns only a number with a dot if it has decimal digits, otherwise it is treated as an integer. 1.1 => 1.1 1. => 1