Complex sentence: The title character was played by Geraldine McEwan from the first to third series, until her retirement from the role, and by Julia McKenzie, from the fourth series onwards.
Split into simpler sentences: The title character was played by Geraldine McEwan from the first to third series, until her retirement from the role. She was replaced by Julia McKenzie, from the fourth series onwards.