title: Get all possible values from a string array that contains two strings c#
body: <p>Hi people of the world.</p>
  
  <p>I'm a beginner C# programmer and I have na array with lots of filePaths from this directory:</p>
  
  <pre><code>'C:\ProgramData\folder1\fodler2\folder3\'
  </code></pre>
  
  <p>The array is something like this:</p>
  
  <pre><code>string[] arrays = {'C:\ProgramData\folder1\fodler2\folder3\sw2-client1-propose1-measure1.dbf', 'C:\ProgramData\folder1\fodler2\folder3\sw-client1-propose2-measure1.dbf', 'C:\ProgramData\folder1\fodler2\folder3\sw1-client1-propose2-measure2.dbf', 'C:\ProgramData\folder1\fodler2\folder3\sw1-client1-propose2-measure1.dbf' }
  </code></pre>
  
  <p>With this exemple you can see that the files in the array have the structure:</p>
  
  <pre><code>sw-client-propose-measure.dbf
  </code></pre>
  
  <p>Where:</p>
  
  <pre><code>sw - a string meaning the name of the software used to get the values to the database
  client - the ID of clients
  propose - the ID of proposes
  measure - the ID of measure
  </code></pre>
  
  <p>Now I need to get a array with all the paths that have a specific propose ID and a sw name that are in the string arrays.</p>
  
  <p>Can you help me achieve my results?</p>
  
  <p>Thanks in advance.</p>