Page 1 of 1

glob() regex

Posted: Thu Aug 13, 2009 3:57 pm
by psurrena
Question is, the code below grabs all images that end with "_t.jpg", what would be the expression to exclude all images containing "_t"

So one array would contain (1_t.jpg, 2_t.jpg) and a different array would contain (1.jpg, 2.jpg)

Thanks!

Code: Select all

 
$thumbails = glob("images/projects/$row->directory/*_t.jpg")