A polymer is provided according to structure (I) wherein Y is a thiol-reactive group selected from one or more of the following moieties and Z is an ionogenic group selected from one or more of the following moieties. The surface of a polymeric substrate is modified by contacting the surface with a polymer according to structure II or structure III and exposing the surface to ultraviolet light.