title: Creating Regex for a file name (python)
body: <p>I am strugling at creating a regex expression for my python program.</p>
  
  <p>I need to test if the files in a folder are following this format:</p>
  
  <blockquote>
    <p>TvShowName.SxxExx.Title.fileextension</p>
  </blockquote>
  
  <p>Where "SxxExx" means Season <em>number</em> Episode <em>number</em></p>
  
  <p>For example:</p>
  
  <blockquote>
    <p><strong>Dexter</strong>.<em>S01E01</em>.<strong>The Monster</strong>.<em>mp4</em></p>
    
    <p><strong>The Mentalist</strong>.<em>S03E05</em>.<strong>Red Lay</strong>.<em>mp4</em></p>
  </blockquote>
  
  <p>Can someone help me "generalize" this filenames so I can test them?</p>
  
  <p>Thank you</p>