Don't be disheartened, I'm sure you'll get over this pain. Start with some basic exercises like partial crunches and hamstring stretches instead of performing hard core exercise.