Present invention discloses a macromer based novel copolymer comprising an acrylate or methacrylate ester of low molecular weight oligomeric lactide copolymerized with basic monomer. These copolymers show unusual dissolution behavior in that they are soluble over a wide range of pH from 1.8 to 7.4. This unexpected solubility behavior can be exploited to develop pharmaceutical dosage forms.