Can you describe what it looks like? Some types of ascaris can also be that long, and as thick as a finger around.
They also put out an enzyme inhibitor, and taking the extra proteolytic enzymes will hit them as well. They have 3 layers of skin, and the enzymes are able to get through the skin so the herbs can hit them better too.
If it is a tapeworm (with segments), make sure you've also gotten the scolex, or it can regrow.