title: Finding a list item using regex in java
body: <p>I have a list of files, each item in the list is the name of the file followed by various information like creation date. I need a way to check if the list contains a file using just the file name.</p>
  
  <p>So if a list contains:</p>
  
  <pre><code>[fileName1#date#otherinfo, fileName2#date#otherinfo]
  </code></pre>
  
  <p>Is there a regex to find whether the list contains fileName1(+any number of characters) if I don't know what the date or other info is?</p>