title: regex doesn't match python end of string
body: <p>I am trying to capture some text in a string shown below</p>
  
  <p>testdir1\testdir1\textfile.vhd</p>
  
  <p>I want to capture the file extension plus the dot and i am using the regex</p>
  
  <p>[.vhd]{4}$</p>
  
  <p>This seems to work on regex101</p>
  
  <p><a href="https://regex101.com/r/TSoIN3/2" rel="nofollow noreferrer">https://regex101.com/r/TSoIN3/2</a></p>
  
  <p>but when i actually implement this in python it doesn't</p>
  
  <pre><code>import re
  result = re.match(r'[.vhd]{4}$',"testdir1\\testdir1\\textfile.vhd")
  print(result)
  
  None
  </code></pre>
  
  <p>I am assuming that the regex is essentially working but i am calling the python match function wrong???</p>
  
  <p>any help would be appreciated.</p>