title: Remove file prefix in absolute path but prefix is also directory part
body: <p>I was wondering if there is any nice solution for the following problem:</p>
  
  <p>Assuming I have a string with the absolute Path to a file and the file has the prefix "temp_".
  I am able to trim the prefix with string.replaceFirst().</p>
  
  <p>But if I am unlucky "temp_" is also part of the directory in that String.
  How to make sure only the last occurence will get trimmed?</p>
  
  <p>I can only think to parse it myself, but was wondering if there's magic left to do it a better way?</p>
  
  <p>To be more precisely as example:</p>
  
  <pre><code>C:\Dump\sol1\temp_results\temp_2012-04-core.pcap
  </code></pre>
  
  <p>Should become:</p>
  
  <pre><code>C:\Dump\sol1\temp_results\2012-04-core.pcap
  </code></pre>