unsure wether its the regulator thats the problem,regulator side of the circuit just give you a set voltage coming from the alternator,(regulates voltage) if its dodgy you usually see the main beam lights rise and fall with the rpms.its probably the rectifier side,, this converts ac voltage from the alternator to a dc current for charging,most rectifiers from a bike with the same size engine or bigger will work ok,just match the pins up,first of all i would clean all the connections and ask here if the diode in the loom has anything to do with this fault ,
,
you could also read this,, very helpfull..............
viewtopic.php?f=3&t=5117