Find GIDs in a block of wiki text.