text stringlengths 0 4.23k |
|---|
Uses the specified text as a literal search string. |
/g:<file> |
Gets search strings from the specified file. |
/d:<dirlist> |
Searches the specified list of directories. Each directory must be separated with a semicolon (;), for example dir1;dir2;dir3. |
/a:<colorattribute> |
Specifies color attributes with two hexadecimal digits. Type color /? for additional information. |
<strings> |
Specifies the text to search for in filename. Required. |
[\<drive>:][<path>]<filename>[...] |
Specifies the location and file or files to search. At least one file name is required. |
/? |
Displays Help at the command prompt. |
<file> |
<string> |
<file> |
<dirlist> |
dir1;dir2;dir3 |
<colorattribute> |
color /? |
<strings> |
[\<drive>:][<path>]<filename>[...] |
Remarks |
All findstr command-line options must precede strings and filename in the command string. |
Regular expressions use both literal characters and meta-characters to find patterns of text, rather than exact strings of characters. |
A literal character is a character that doesn't have a special meaning in the regular-expression syntax; instead, it matches an occurrence of that character. For example, letters and numbers are literal characters. |
A meta-character is a symbol with special meaning (an operator or delimiter) in the regular-expression syntax. |
The accepted meta-characters are: |
Meta-character |
Value |
. |
Wildcard - Any character |
* |
Repeat - Zero or more occurrences of the previous character or class. |
^ |
Beginning line position - Beginning of the line. |
$ |
Ending line position - End of the line. |
[class] |
Character class - Any one character in a set. |
[^class] |
Inverse class - Any one character not in a set. |
[x-y] |
Range - Any characters within the specified range. |
\x |
Escape - Literal use of a meta-character. |
\<string |
Beginning word position - Beginning of the word. |
string\> |
Ending word position - End of the word. |
. |
* |
^ |
$ |
[class] |
[^class] |
[x-y] |
\x |
\<string |
string\> |
The special characters in regular expression syntax have the most power when you use them together. For example, use the combination of the wildcard character (.) and repeat (*) character to match any string of characters: .* |
. |
* |
.* |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.