Report question

Question: how to remove all text after the last recurrence of a certain character