my @nums = $dotted_num_string =~ /^(\d+)(?:\.(\d+))*$/; #### my @nums = $dotted_num_string =~ /^(\d+)(\.\d+){3,5}$/;