title: regex to remove everything after the last dot in a file
body: <p>I'm trying to find a regex for removing everything after the last dot in a file. So far I've found ways to remove all text before the first dot, but I can't seem to find a way to select the end of the file. Could you help me on the way?</p>
  
  <p>Thanks in advance</p>