File System Wildcards

 

 

 

Searching and Filtering File System Information

 

Asterisk * matches a string of zero, one, or more unknown characters.

Example, *.* will match any file name with any file extension.

Example, *.TXT will match any file name with a .TXT extension.

 

Question Mark ? matches any single unknown character.

Example, File????.* would match FileName.TXT or File2025.CSV but would not match FileSample.TXT or File125.CSV.

 

Square Brackets [ ] can be used to match any single character within the specified range or set.

Example, File[A-Z].* would match FileA.TXT or FileB.CSV but would not match File1.TXT or File2.CSV.

Example, File[135].* would match File1.TXT or File5.CSV but would not match File2.TXT or FileA.CSV.

 

Square Brackets with Exclamation Point [ ! ] can be used to match any single character not within the specified range or set.

Example, File[!A-Z].* would match File2.TXT or File8.CSV but would not match FileA.TXT or FileB.CSV.

Example, File[!135].* would match File8.TXT or FileA.CSV but would not match File3.TXT or File5.CSV.

 


Copyright © 2024 pasUNITY, Inc.

 

Send comments on this topic.



Created with an evaluation copy of HelpSmith.
To remove this notice, you should purchase the full version of the product.