C++ Input Validation using regex for int,floats/double, and chars