title: Regex to accept specific file types
body: <p>I am using the <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">BlueImp jQuery File Upload</a> and on its manual, regex code is required to fill the accepted file types you want to upload. I have here the regex so far:</p>
  
  <pre><code>/^image\/(gif|jpe?g|png)$|^application\/(csv|pdf|msword)$|^text\/plain$/i;
  </code></pre>
  
  <p>But that doesn't support other file types such as docx. What I want are the following file types:</p>
  
  <pre><code>doc,docx,xls,xlsx,ppt,pptx,jpg,png,gif,pdf,txt,csv
  </code></pre>