It would be nice if someone could give me a regex pattern for glob to get below file names:
1.jpg // this file
1_thumb.jpg
2.png // this file
2_thumb.png
etc...
returns files without "_thumb". I have this template:
$numericalFiles = glob("$this->path/*_thumb.*");
and that will give me all the "_thumb".
source
share