Hi, am using glob in linux to match files like this with no problems:

glob("../dbimages/banners/{*.[jJ][pP][gG],*.[gG][iI][fF]}",GLOB_BRACE);

that matches gif o jpg case insensitive, now this works on linux with no
problems, but it does not in OSX.

//This works nice in OSX
glob("../dbimages/banners/*.[jJ][pP][gG]"); 
//This also works but not case insensistive
glob("../dbimages/banners/{*.jpg,*.gif}",GLOB_BRACE); 
//This does not work at all 
glob("../dbimages/banners/{*.[jJ][pP][gG],*.[gG][iI][fF]}",GLOB_BRACE);

It seem that GLOB_BRACE + the complex regexp does not work in OSX.

PHP is 4.3.11
OSX is 8.2.0

Thanks

-- 
Luis Magaña
Gnovus Networks & Software
www.gnovus.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to