Eat foods with lots of fiber. Examples of foods that contain fiber are bran, whole wheat, grains and seeds. Most vegetables are a good source of fiber, such as green beans, peas, cabbage, zucchini and spinach. Most fruits are excellent sources of fiber including dried unsweetened fruits.