Former Sex and the City star Sarah Jessica Parker will replace Demi Moore in Lovelace.

The actress will play feminist icon Gloria Steinem in the Linda Lovelace biopic, after Moore pulled out of the project this week following a stint in hospital.

Producers were reported to have approached Weeds star Mary Louise Parker for the cameo, but Parker officially secured the role on Friday (January 27), according to Us Weekly.

Lovelace stars Amanda Seyfried as the X-rated movie star and also features James Franco as Hugh Hefner, Juno Temple, Sharon Stone, Hank Azaria and Peter Sarsgaard.

Chloë Sevigny recently joined the cast as a feminist journalist assigned to write a story about Lovelace.