HOWTO: Search For Text Using Regular Expressions
To find file(s) of the required type containing the text that matches a pattern, do the following.
- Specify the folder in which you want to find files. For example:
C:\MyWebFiles\Projects
- Set mask(s) of the files that you want to find. For example:
*.htm*;*.asp;*.cpp
- Provide the pattern in the Find What field for the matching text that you want to find.
For example, you want to find HTML files containing the <OBJECT>
tags, not simply word OBJECT. The corresponding pattern would include:
- the opening tag;
- tag name (OBJECT);
- as the tag may contain attributes, some wildcard operator and
repetition operator that would match the remaining tag inner text;
- the closing tag.
The pattern in this case would look as follows:
\<OBJECT.#\>
- Click the Search button. This is important to click this button rather than
Replace, to not
replace occurrences of the found text.