Katherinef,
[1] It would be equivalent to the complementary set of all files with name containing a segment "test" (case insensitive, for filename). So the boolean test can simply use pattern "test".
[2] You can also use instr(1,filename,"test",1)=0 as the criteria to identify those files you want. This is often simpler in picturing and implementation. It is not necessarily slower or less efficient than using regexp when all you feed to the machinery are filenames.
regards - tsuji