title: Regex expression to see if a file path matches a particular pattern
body: <p>I have a list of file paths</p>
  
  <pre><code>l = ['C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCompteBo\\saisie\\saisieCompteBo-flux.xml',
       'C:\\src\\main\\webapp\\WEB-INF\\flows\\recherche-flux.xml', 
       'C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCompteBo\\import\\import-flux.xml',
       'C:\\src\\main\\webapp\\WEB-INF\\gestionCompteBo-flux.xml', 
       'C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCompte\\gestionCompte-flux.xml', 
       'C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCommunication\\tableauDeBord\\tableauDeBord.xml']
  </code></pre>
  
  <p>I need to fetch those file paths which match the pattern </p>
  
  <pre><code>pattern = '\\WEB-INF\\flows\\**\\*-flux.xml'
  </code></pre>
  
  <p>where <code>**</code> depicts recursive depth of folders/directories.
  <code>*</code> may depict just one folder deep.
  How do I write a regex expression to fetch the file paths that match this pattern? How do I generalise if there is a single <code>*</code>? </p>
  
  <p>Expected output should be </p>
  
  <pre><code>['C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCompteBo\\saisie\\saisieCompteBo-flux.xml',
   'C:\\src\\main\\webapp\\WEB-INF\\flows\\gestionCompteBo\\import\\import-flux.xml',
  </code></pre>