My real life ex-boyfriend

I'm finally getting over him but it still hurts sometimes. I know I'll have to get over him someday, but when and how?