This would erase every > - not what the OP wanted.
In reply to Re^2: Delete till end of line to another string by rovf in thread Delete till end of line to another string by Anonymous Monk