title: Python regex: Remove a pattern at the end of string
body: <p>Input: <code>blah.(2/2)</code></p>
  
  <p>Desired Output: <code>blah</code></p>
  
  <p>Input can be "blah.(n/n)" where n can be any single digit number.</p>
  
  <p>How do I use regex to achieve "blah"? This is the regex I currently have which doesn't work:</p>
  
  <pre><code>m = re.sub('[.[0-9] /\ [0-9]]{6}$', '', m)
  </code></pre>