title: Get Filename Without Extension in Python
body: <p>If I have a filename like one of these:</p>
  
  <pre><code>1.1.1.1.1.jpg
  
  1.1.jpg
  
  1.jpg
  </code></pre>
  
  <p>How could I get only the filename, without the extension? Would a regex be appropriate?</p>