title: How to delete everything after a certain character in a string?
body: <p>How would I delete everything after a certain character of a string in python? For example I have a string containing a file path and some extra characters. How would I delete everything after .zip? I've tried <code>rsplit</code> and <code>split</code> , but neither included the .zip when deleting extra characters.</p>
  
  <p>Any suggestions?</p>