Search notes:

PowerShell: wildcards

Wildcards are used to select strings (or «items») that meet a certain pattern.
The list of possible wildcards is
* Zero, one or more characters
? Exactly one character
[fqR] Matches one character if is is either f, q or R.
[a-f] Maches one character if is in the range of a through f.
Wildcards can be used, for example, in
Wildcards are way less powerfull than regular expressions which can be specified with the -match, -nomatch and -replace operators.

No default expansion in most commands

Note that PowerShell won't expand wildcards when invoking a command as one might be used from other shells. The following command wll print the literal string *.ps1, regardless if there are any PowerShell scripts in the current directory:
write-output *.ps1
There are, however, a few comannds that do expand wild cards.
These commands can be forced to not expand wildcards by using the -literalPath option, for example in the cmdlet remove-item.

See also

The supportsWildcards attributes for parameters.
The supportsWildcards attribute of a function parameter.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1740463521, '18.220.64.124', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/wildcards(71): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78