Hi Bill | if ( | $file != "." | and $file != ".." | and stristr("$searchstring", $file) | ) This IF condition sounds ok to me, do you find that this is not working? If not, can you give an example of a string from which STRISTR doesn't recognize your wildcard pattern? Shanx