I hate getting jealous of my friend and somehow mange to almost every day. How can you stop being jealous and stop being sad that you arent with someone, but focus more on how happy you are to be a friend?
find things you like. do something constructive and rewarding. go out a socialize. if they aren't good friends i would say stop hanging out or limit it. just well be happy that they are happy. look for someone else or buy a pet.