title: php search folders with specific pattern in the name
body: <p>Environment: Windows 7 + XAMPP for Windows 5.6.15</p>
  
  <p>I need to search a folder for sub-folders that match one of the pattern from these two</p>
  
  <ul>
  <li><code>E*.mysoftware.swl.px64</code></li>
  <li><code>E*.r*.mysoftware.swl.px64</code></li>
  </ul>
  
  <p>So these are the set of sub-folders I need to select</p>
  
  <pre><code>E0234.mysoftware.swl.px64
  E0235.mysoftware.swl.px64
  E0236.mysoftware.swl.px64
  E0236.r2.mysoftware.swl.px64
  E0237.mysoftware.swl.px64
  E0237.r2.mysoftware.swl.px64
  E0237.r3.mysoftware.swl.px64
  </code></pre>
  
  <p>These shouldn't select</p>
  
  <pre><code>E0237.A.mysoftware.swl.px64
  E0237.b3.mysoftware.swl.px64
  </code></pre>
  
  <p>My question is can I do this search by using only one pattern?</p>