public static List<File> listFilesWithPattern(File directory, String fileNamePattern){
	    if (directory == null || !directory.isDirectory()|| StringUtils.isBlank(fileNamePattern)) {
            return Collections.emptyList();
        }
	    
	    File[] matchingFile = directory.listFiles((dir, name) -> name.matches(fileNamePattern));
	    
	    return matchingFile == null ? null : Arrays.asList(matchingFile);
	}
List all files present in directory which matches filename regex pattern
@param directory
@param fileNamePattern
@return List of files
commons/src/main/java/io/hyscale/commons/io/HyscaleFilesUtil.java