title: Match a regex from characters to end of line but ignore the last character
body: <p>The regex</p>
  
  <pre><code>(file\..*$)
  </code></pre>
  
  <p>matches "file.xml" correctly in </p>
  
  <pre><code>$cd = "..\folder\file.xml"
  </code></pre>
  
  <p>but I'd like to ignore the trailing quote via regex if possible</p>