title: Is there a fast Java library to search for a string and its position in file?
body: <p>I need to search a big number of files (i.e. 600 files, 0.5 MB each) for a specific string.</p>
  
  <p>I'm using Java, so I'd prefer the answer to be a Java library or in the worst case a library in a different language which I could call from Java.</p>
  
  <p>I need the search to return the exact position of the found string in a file (so it seems Lucene for example is out of the question).</p>
  
  <p>I need the search to be as fast as possible.</p>
  
  <p><strong>EDIT START:</strong> </p>
  
  <p>The files might have different format (i.e. EDI, XML, CSV) and contain sometimes pretty random data (i.e. numerical IDs etc.). This is why I preliminarily ruled out an index-based searching engine.</p>
  
  <p>The files will be searched multiple times for similar but different strings (i.e. for IDs which might have similar length and format, but they will usually be different).</p>
  
  <p><strong>EDIT END</strong></p>
  
  <p>Any ideas?</p>