@Fervent Freyja is right on the money.
Fiber is interesting and a little complicated, to say the least.
You may know that wood is ~75% a polymer of sugar. It is called cellulose. Humans cannot digest it. Cellulose is one of many compounds in foods that contribute to fiber. For example, cellulose exists in plant leaves - the "veins" you see in a spinach leaf. As you would guess, cellulose is insoluble fiber.
Dextrin is another sugar polymer, that is soluble. Humans digest dextrin poorly, but gut bacteria can break it down, ferment it by anaerobic respiration. Whole wheat promotes dextrin. Let me be clear - small amounts of dextrin results from acid hydrolysis of other carbohydrates, in your stomach. It is not "in" foods as they sit on the table. Commercial dextrins from hydrolysis are also commercial food additives. So processed foods may have man made dextrin.
Phytates are another fiber-like indigestible component of plant based foods, particularly legume (bean) seeds. Phytates break down with long cooking times. Which is helpful. They do provide fiber, but they are anti-nutrients. They grab and hold onto mineral micronutrients, preventing your body from absorbing those micronutrients. This is why uncooked (particularly raw fresh) beans are completely edible, but not a great idea for long term nutrition. Also why beans "lose" some fiber during cooking. Cause: Phytate breakdown by hydrolysis. Tannins in foods, like sorghum, are somewhat like phytates, except that they render protein less digestible. The flip side of tannins is that some related polyphenols found in herbs and spices are extremely valuable as antioxidants. Sage (Salvia spp. ), thyme (Thymus spp.) and cloves (Syzygium aromaticum) are very high in polyphenols.
List of polyphenol contents in herbs and spices - this is a quick, really interesting read:
http://www.nature.com/ejcn/journal/v64/n3s/fig_tab/ejcn2010221t1.html