Fix bug.

Only a certain amount of post references where formatted with re.sub,
beacuse I specified flags as count argument.