Files on directory like:
Lets say i want to filter only file1 with _(someSize)x(someSize)(.someFileExt)
So the result should only be
How should the pattern should be?
I am working on it for whole day. But couldn't handle it.
I think i made it:)
$filter = 'file1';
preg_match("/^($filter)(_.*x.*)$/", $file, $matches);