A new class of polymers include repeating units comprising one or more arylene units substituted with heterocyclic side groups. The heterocyclic substituted arylene repeat units have the general structural formula:
wherein Het is a heterocyclic group, R is an optional substituent, x is 1 or 2, and y is less than or equal to 4-x.