Writing in anger can produce some pretty powerful, thought-provoking work, but as you said, it also reveals a completely different side of yourself. Some people write better when angry, though-it’s such a passionate, stringent emotion, which means it brings out a completely different depth of feeling than happiness.
But yes, I would regret some things written in anger, or maybe even be afraid of them, because sometimes it’s almost like another person entirely wrote them.