Once again, that will not work. I'm not sure what you tested or how you tested it. glob() is not PCRE compatible. It uses decimals for directory traversing, asterisks for wildcards, and curly braces for grouping, all of which are PCRE special characters. That expression could be construed as an EREG pattern due to the lack of delimiters... but at any rate, it won't work.