Experience is merely the name men gave to their mistakes.
The Picture of Dorian Gray ch. 4 (1891). A similar quotation occurs inWilde's play LadyWindermere's Fan, act 3 (1892).

Experience is merely the name men gave to their mistakes.