title: How to trim data with last alphanumeric key as reference
body: <p>Need your help on below Data trimming or what so ever to get the result that shows also on below. I want to get the data where my reference is the last <strong><code>-</code></strong> symbol.</p>
  
  <p>See example below.</p>
  
  <pre><code>   FROM                  TO
    +-------------------------------+
    |ABC-1234-AR-R  | ABC-1234-AR   |
    |ABC-1254-AR-IT | ABC-1254-AR   |
    |ABC-1223-AR-LTL| ABC-1223-AR   |
    |ABC-1234-R     | ABC-1234      |
    +-------------------------------+
  </code></pre>