Juris, I am a single man in his 30s who is striving for purity. It is definitely not easy to be unmarried for this long of a time-- but I have learned some ways to fight temptation.
Remember that the struggle for purity is not just a matter of what we do or don’t do. Actions are very important, of course, but ultimately, purity is a matter of our hearts.
In that line of thought (the heart), pray and ask God to give you a sense of His
deep, deep love for you. Then, ask Him for an understanding of just how majestic and wonderful and beautiful He really is! Ask Him for the ability to
truly know Him in a deeper way, a way that makes momentary sinful pleasure look like what it actually is-- small and quickly passing, compared to the joys of knowing God.
Finally, ask God for the strength and the
joy in Him to be able to love Him more than anything or anyone else-- more than the attention of men, more than a brief sexual charge, more than any sin that would deeply harm your relationship with Him. God answered this prayer for Saint Augustine (long before he was officially declared a Saint!), and God can answer it for you too.