Katherine Mansfield said this quote

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