LispWorks IDE User Guide > 16 The Search Files tool > 16.2 Performing searches > 16.2.1 Entering Search Specifications directly

NextPrevUpTopContentsIndex

16.2.1.2 Root and Patterns searches

A Root and Patterns search is used to search for a particular regexp in all files whose names match one or more patterns within a directory. Enter the regexp in the Regexp Search String box, the starting directory in the Root Directory box, and a set of filename patterns in the Pattern List box.

You can press Up or Down in the Root Directory box to complete physical directory components, as described in Completion.

Figure 16.2 A Roots and Patterns search

You can search subdirectories by including directory components (including wild components) in the the Pattern List box.

Multiple filename patterns can be entered, separated by semicolons. Spaces before and after each pattern are ignored. Each filename pattern should be a complete filename and can use the following syntax to make it match multiple files:

Here are some examples of pattern lists:

images/*.* ; icons/*.* {images,icons}/*.*

Both of these patterns match all files in the root /images and the root /icons directories.

**/{images,icons}/sunrise.{bmp,jpg,jpeg} **/images/sunrise.{bmp,jpg,jpeg} ; **/icons/sunrise.{bmp,jpg,jpeg}

Both of these patterns match all files with the name sunrise.bmp , sunrise.jpg or sunrise.jpeg in a directory named icons or images , anywhere in the root directory.

{maj,min}or-events/{*-name,date}/*.txt major-events/{*-name,date}/.txt ; minor-events/{*-name,date}/.txt {maj,min}or-events/date/*.txt ; {maj,min}or-events/*-name/*.txt

Each of these three patterns matches all .txt files which are in a directory date or a directory that ends with -name in the major-events or minor-events directories.

See also the Match flat file-namestring option in Search Parameters for additional information.

If a filename pattern is a directory then all files in that directory are searched.

Check Case sensitive to make the search match only the case of letters exactly as entered, as illustrated above.

Check All files to ignore any list of File Types in the Preferences.


LispWorks IDE User Guide (Macintosh version) - 22 Dec 2009

NextPrevUpTopContentsIndex