Stream filter regex : <pre><code>List&lt;File&gt; fileListToProcess = Arrays.stream(allFolderPath)
                .filter(myFile -&gt; myFile.getName().matches("archive_"))
                .collect(Collectors.toList());
</code></pre>

<p>I am filtering files which starts with "archive_" to process using regex and streams. This does not work. What am i doing wrong here? </p>
