title: Maven - File Inclusion/Exclusion regexp syntax rules
body: <p>I would like to know more about the "regular Expression" [1] syntax that is used in Maven plus other build tools like Ant, Grunt and so on. </p>
  
  <p>Consider the snippet below - specifically the two <strong><code>&lt;include&gt;</code></strong> directives to specify the </p>
  
  <ul>
  <li>directory </li>
  <li>subdirectory</li>
  <li>file name(s)</li>
  </ul>
  
  <p>to be included/excluded</p>
  
  <pre><code> &lt;project&gt;
        ...
        &lt;name&gt;My Resources Plugin Practice Project&lt;/name&gt;
        ...
        &lt;build&gt;
          ...
          &lt;resources&gt;
            &lt;resource&gt;
              &lt;directory&gt;src/my-resources&lt;/directory&gt;
              &lt;includes&gt;
                &lt;include&gt;**/*.txt&lt;/include&gt;
                &lt;include&gt;**/*.rtf&lt;/include&gt;
              &lt;/includes&gt;
            &lt;/resource&gt;
            ...
          &lt;/resources&gt;
          ...
        &lt;/build&gt;
        ...
      &lt;/project&gt;
  </code></pre>
  
  <p>Is there any documentation available on an exhaustive list of rules? I could not find anything (other than the examples provided) on this specific syntax. Rather I am forced to rely upon trial and error (rather than concrete understanding and reasoning).</p>
  
  <p><strong>Footnote:</strong>
  1. I say "Regular Expression" - in a broad sense here. These syntax rules do not seem to be compatible with Perl5/6 Regular Expression syntax. So, I am assuming it is a different regex dialect?</p>