Check if value in list ignoring the last few chars : <p>I have a list of files (some ends with _HHMMss.<strong>* where *</strong> is the extension).</p>

<p>I want to check if a specific file exist in the list ignoring the "_HHMMss", means:
if I have a list:</p>

<pre><code>A_Log_YYYY_MM_DD_121122.csv
B_Log_YYYY_MM_DD_112211.csv
C_Log_YYYY_MM_DD_333333.csv
D_Log_YYYY_MM_DD_555555.csv
E_Log_YYYY_MM_DD_777765.csv
</code></pre>

<p>check if "A_Log_YYYY_MM_DD.csv" exist, the answer in this case is TRUE
Is there a fast way to do that?</p>
