The datasheet of every voltage regulator IC has its schematic. For a 7805 5V regulator there are two zener diodes, many transistors and many resistors (plus one capacitor).
To see the schematic of an adjustable regulator then look at the datasheet of an LM317.
Next time, please look at the datasheets yourself.