It really depends on what the file contents look like. Do the lines of the file contain only a file name? Word boundaries as already suggested might work for you, but then you'd get 'abc-eni.cxx' as a false positive. Maybe you want a slash on the front, and whitespace on the back like
. Maybe you should split on '/' and see if the last element equals 'eni.cxx'.