title: How to delete everything from string up to the specific character in Python
body: <p>I wanted to extract only date from following string. Here is variable:</p>
  
  <pre><code>file = '62-201809.csv'
  </code></pre>
  
  <p>I used <code>rsplit</code> to get rid of file csv extension like this:</p>
  
  <pre><code>splitf = file.rsplit('.', 1)[0]
  </code></pre>
  
  <p>I got <code>62-201809</code> so it's okey but now i need to get rid of everything to '-' and store only <code>201809</code> into variable.How to do it?</p>