title: Delete a period and a number at the end of a character string
body: <p>How do I delete a trailing period (<code>.</code>) followed by a number (one or two digits in length) directly preceding it?  Example:</p>
  <pre><code>z &lt;- c(&quot;awe&quot;, &quot;p.56.red.45&quot;, &quot;ted.5&quot;, &quot;you.88.tom&quot;) 
  </code></pre>
  <p>I only want to remove the <code>.45</code> and the <code>.5</code>.</p>