Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expressions pattern

Status
Not open for further replies.

KatherineF

Technical User
Mar 3, 2003
124
US
I need to write a pattern to locate all files missing a word, for example, "test". I gonna use this pattern in a search tool in order to find these files under specified directory.

Thanks.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top