It would be nice if someone could give me a regexp pattern for glob for getting below filenames:
1.jpg // this file 1_thumb.jpg 2.png // this file 2_thumb.pn
foreach (glob('[0-9]*') as $filename) { if (strpos("$filename","_thumb") === FALSE){ echo "$filename \n"; } }