The only time I bought anything to regulate the power supply was in Kenya in the 1980s. There weren't many long power cuts, but there were twice weekly drop outs of a few seconds. A voltage stabiliser covered those seconds. As the supply voltage went down, the slider on the transformer moved to keep up.