From the Hakagure

There is nothing so painful as regret. We would all like to be without it. However, when we are very happy and become elated, or when we habitually jump into something thoughtlessly, later we are distraught, and it is for the most part because we did not think ahead and are now regretful. Certainly we should try not to become dejected, and when very happy should calm our minds.