When did you stop breastfeeding?

When did you wean your baby from breast feeding? For those that breastfed a little longer do you regret not doing it sooner? Is it harder and affects them more? For those that weaned around the year mark are you glad you did or hoped you kept nursing? Is there an ideal time to wean off?