PowerShell: String Wildcards

By Xah Lee. Date: . Last updated: .

Wildcard can be used to represent string patterns. For example, dir "*jpg" means list any filename ending in jpg.

Match any character.
Match any character, zero or more times.
Match a range of characters a to z.
Match any char in chars
PowerShell path param doc 2021-07-12
part of help dir output.

PowerShell String


Practical How-To

PowerShell in Depth

Programing PowerShell

Script Examples