title: javascript regex for extracting filename from Content-Disposition header
body: <p>Content-disposition header contains filename which can be easily extracted, but sometimes it contains double quotes, sometimes no quotes and there are probably some other variants too. Can someone write a regex which works in all the cases.</p>
  
  <pre><code>Content-Disposition: attachment; filename=content.txt
  </code></pre>
  
  <p>Here are some of the possible target strings:</p>
  
  <pre><code>attachment; filename=content.txt
  attachment; filename*=UTF-8''filename.txt
  attachment; filename="EURO rates"; filename*=utf-8''%e2%82%ac%20rates
  attachment; filename="omáèka.jpg"
  and some other combinations might also be there
  </code></pre>