Katherine Mansfield said this quote

Make it a rule of life never to regret and never to look back. Regret is an appalling waste of energy, you can't build on it, it's only good for wallowing in.