title: Rename files using regular expression in linux
body: <p>I have a set of files named like:</p>
  
  <pre class="lang-none prettyprint-override"><code>Friends - 6x03 - Tow Ross' Denial.srt
  Friends - 6x20 - Tow Mac and C.H.E.E.S.E..srt
  Friends - 6x05 - Tow Joey's Porshe.srt
  </code></pre>
  
  <p>and I want to rename them like the following</p>
  
  <pre class="lang-none prettyprint-override"><code>S06E03.srt
  S06E20.srt
  S06E05.srt
  </code></pre>
  
  <p>what should I do to make the job done in linux terminal?
  I have installed rename but U get errors using the following:</p>
  
  <pre><code>rename -n 's/(\w+) - (\d{1})x(\d{2})*$/S0$2E$3\.srt/' *.srt
  </code></pre>