String regex = filesMasksArray[i];
regex = regex.replace(".", "\\.");
regex = regex.replace("*", ".*");
regex = "^" + regex.trim() + "$";
Pattern pattern = p5c.compile(regex, Perl5Compiler.CASE_INSENSITIVE_MASK);
match = match || p5m.matches(fileName, pattern);
if (match) {
break;
}
}
} else {