I don't regret the things I have done in the past. I only regret the things I did not do when I had a chance.
Regret fades more slowly when it comes from doors we never opened than from mistakes we actually made. A failed attempt leaves us with a story, a lesson, and often a bit of humor, while an untried one leaves only a question: what would have happened? The speaker accepts the whole messy record of their past and keeps their sorrow for the missed chances, the moments when they could have acted and stayed silent or still.
The idea echoes the existentialist view that we are defined by our choices, and that avoiding a choice is itself a choice. It also matches what psychologists such as Thomas Gilovich and Victoria Medvec have reported: in the short run people sting from their actions, but over a lifetime they tend to regret their inactions more. The line has no known author, so it is best treated as popular wisdom rather than the words of any one thinker.
Today, this might mean finally sending that application for a course or job you have been circling for months. You may be rejected, and that will hurt, but you will know the answer, and you won't be left wondering.