title: Find if an item exists in a list using regex pattern
body: <p>I've a list of files with timestamp appended to it.I Also have another list which contains regex patterns. I wanted to verify all patterns in 'refFiles' exists in 'files' for not.</p>
  
  <p>Below is the samples files,</p>
  
  <pre><code>List&lt;string&gt; files = new List&lt;string&gt;();
  files.Add("AB_DBER_2016101194814.txt");
  files.Add("AB_EBER_2016101194815.txt");
  files.Add("AB_FBER_2016101194811.txt");
  </code></pre>
  
  <p>This is the reference patterns:</p>
  
  <pre><code>List&lt;string&gt; refFiles = new List&lt;string&gt;();
  refFiles.Add("AB_DBER_[0-9]{13,13}.txt");
  refFiles.Add("AB_EBER_[0-9]{13,13}.txt");
  refFiles.Add("AB_FBER_[0-9]{13,13}.txt");
  </code></pre>
  
  <p>I wanted to do something like:</p>
  
  <pre><code> foreach (var file in refFiles )
   {
     //if file has a match in files then I need to do some code
   }
  </code></pre>
  
  <p>I wanted to know how I can find the regex pattern in second list to verify that matching patern exists in first list.</p>