If it hurts a lot, that's the end of your stretch. Don't over stretch.
Of course, I'm telling you this too late. If you're in that much pain, you should see a doctor. You could have done some real damage.
_________________________
In my walk in the martial way, my hope is that as long as I live, I will always be a beginner.