Need Help to Create Regex to Find Duplicate Returns and Remove the Last One

Input and output example ?

returns means line-breaks ?

duplicate means double-spaced, where you want single-spaced ?

First port of call:
Tip: How Do I Get The Best Answer in the Shortest Time? - Tips & Tutorials - Keyboard Maestro Discourse