Powering a servo through a 7805 regulator

You can use Battery Eliminator Circuit (BEC) to supply power to a 9g micro servo