where is the voltage regulator located on my 1994 bmw 318i on 1994 BMW 318i

ive replaced the alternator as well as the battery and it still will not stay charged the car dies completely out while i am driving

2 answers 2 comments
The voltage regulator is with in the alternator itself.
SO BASICALLY THE ALTERNATOR IS BAD I JUST RECENTLY PURCHASED IT
New doesn't always mean good. Try a different brand of alternator.
THANKS