title: How to remove everything before certain character in Python
body: <p>I'm new to python and struggle with a certain task:</p>
  <p>I have a String that could have anything in it, but it always &quot;ends&quot; the same.
  It can be just a Filename, a complete path, or just a random string, ending with a Version Number.</p>
  <p>Example:</p>
  <pre><code>C:\Users\abc\Desktop\string-anotherstring-15.1R7-S8.1
  string-anotherstring-15.1R7-S8.1
  string-anotherstring.andanother-15.1R7-S8.1
  </code></pre>
  <p>What always is the same (looking from the end) is that if you reach the second dot and go 2 characters in front of it, you always match the part that I'm interested in.
  Cutting everything after a certain string was &quot;easy,&quot; and I solved it myself - that's why the string ends with the version now :)</p>
  <p>Is there a way to tell python, &quot;look for the second dot from behind the string and go 2 in front of it and delete everything in front of that so that I get the Version as a string?</p>
  <p>Happy for any pointers in the right direction.</p>
  <p>Thanks</p>