All lines between target1 and target2 should be removed. In my gif example below “ace” is `}`. 