title: Regular expression for excluding file types .exe and .js
body: <p>I am using JQuery File upload plugin, for giving value to the option accept files I need the regular expression which will tells what are the file types to be restricted. I need to restrict both exe and js which i achieved by using below expression</p>
  
  <p><code>(\.|\/)(!exe|!js)$</code></p>
  
  <p>But this is expression was not allowing other files as well then I tried adding one extension as below</p>
  
  <p><code>(\.|\/)(!exe|!js|pdf)$</code></p>
  
  <p>With Above regular expression it is accepting only pdf and not accepting exe and JS. Now I need to enable for all file extentions except exe and js. It will be difficult to add all the extensions to the expression. Can we mention some how in the expression to accept other filetypes except exe and js in the similar format above. This regular expression is for JS.</p>
  
  <p>Thanks,</p>
  
  <p>Vinay</p>