A regulator includes a digital voltage detection unit for generating a digital voltage detection signal by detecting a digital value of a voltage level of an input voltage; a variable gain amplifying unit for amplifying the input voltage in an amplifying ratio according to a gain control signal; and a gain control unit for receiving the digital voltage detection signal to thereby generate the gain control signal.