def file_accept(files, patterns)
      files.select { |file| patterns.any? { |pattern| file =~ pattern } }
    end
def file_accept(files, patterns)
      files.select { |file| patterns.any? { |pattern| file =~ pattern } }
    end
accept specific files.

 @param [Array] files
 @param [Regexp] patterns, files match any pattern will be accepted