title: Delete the second dash in the rows
body: <p>I have rows with numbers in it. The numbers look like: <code>A-123456</code>, <code>A-123456-P</code>, <code>A-387785</code>, <code>F-489186</code>, <code>T-826926-P-2</code>.</p>
  
  <p>So I need for all numbers with <code>-P</code> or <code>-P-2</code> at the end to remove it, so only the first half remained: <code>A-123456-P</code> ---> <code>A-123456</code>, <code>T-826926-P-2</code> ---> <code>T-826926</code>.</p>
  
  <p>I tried to do that by first finding and replacing all <code>P*</code>. But it left me with <code>-</code> at the end of each such number remaining. I guess I can't just find <code>*-</code> and replace it with nothing, because it would leave me with <code>A</code> because of the first dash.  How would I solve it?</p>