2. Hamstring Stretch on Wall
Another option is to lie down so that you are in the doorway. Your legs should be in one room and your upper body will be in the other. Now raise one leg and get as close to the side where the hinge isn’t as you can. You’re going to put your affected leg straight up so that it is resting against the wall and you’re going to get it as vertical as you can.
Again, hold this position for a few seconds at the point where you can feel the stretch but it doesn’t hurt.