I\'m trying to check if inside a directory there\'s the number of files that I expect. I need to check if the files match the regex that I pass. I pass and split the string