title: Query on regular expression
body: <p>I need to build up a regular expression to match the following file name pattern:</p>
  
  <pre><code>EDI*.DAT
  </code></pre>
  
  <p>and at the same time it should exclude files with the following file name patterns as <code>EDI*US*.DAT</code> and <code>EDI*CA*.DAT</code></p>
  
  <p>For example: Assume there are three files</p>
  
  <p>"EDIabUS674.DAT"
  "EDIabcdCA1234.DAT" and
  "EDIabcIN987.DAT "</p>
  
  <p>I need a regular expression to match for the file with name "EDIabcIN123.DAT" and at the same time should not match and exclude other two files "EDIabUS674.DAT" and "EDIabcdCA1234.DAT"</p>
  
  <p>Any help on this is much appreciated!!</p>