I have a list of file names(I already have the filelist let's say in a text file). I want to process this list in the following way:
- filenames of type /dirX/subdirX//.ext will be written in a new file
- all the other filenames will be written in a separate file.
Is there any option to verify if a filename corresponds to a mask, without reading the file name from disk?(by filename I mean a simple string). I would like to know if there is such a function that don't require disk access. I know regex could be an workaround but I'd like to have something from php.