We reported a three-component smart polymer, which could discriminate disaccharide homologues and translate the recognition signals into distinct differences in the macroscopic properties (i.e. wettability and adhesion force) of materials. With these features, we further showed its application in glycopeptide enrichment.