<human>: Can you give me a shortened version of the text?

My ex and I met when she was 16 and I was 18.  We dated for 5 years and then broke up because she wasn't into the relationship anymore and wanted to be single.  Over the last year, every month or so she would try to hang out with me for a few days, then I'd express my feelings and she would say she "just gets really happy every time I see you" and thinks we "will end up getting married," but isn't ready to get married or be in the relationship again.  However, a few months ago I learned that she had been dating and sleeping around a good bit, so I stopped letting her drag me through the mud.

Two of my closest friends [23-24/M] who I'm in a band with just moved in with her a few days ago.  I calmly expressed that I wouldn't want to hang out with her, but I can't tell them what to do and if it is the best situation for them, then go for it.

I'm trying to be cool about everything, but I just saw her tonight when I dropped a friend off.  I stayed outside, and didn't even speak to her.  But, when I left their house a wave of anxiety came over me.  I think about her pretty much every day, and have a hard time concentrating on work.  It generally makes my life feel like it is in shambles.

I have seen a few other people, but I can't feel much for anyone them, and can barley even have sex.  I try to work on self improvement as much as possible and trust that if I'm at a better place, I'll feel good about myself and be confident that she missed out on someone awesome (not to rub in her face, just to have strong self-esteem), but I feel crippled a lot and can't be productive.

I know it was a long relationship, we were young, those typically don't work out, and I will likely find love again, but I still just can't seem to get past all of this. 
What can I do to move on without cutting out my friends?
<bot>: my close friends [23-24/M] and ex girlfriend [22/f] now live together and I'm having a good deal of trouble moving on from her, how can I get past this?