Pattern Matching

The pattern-matching feature allow you to use wildcard characters, character lists, or character ranges, in any combination, to match strings. The following table shows the characters allowed in pattern and what they match:

Characters in pattern Matches in string
?Any single character.
*Zero or more characters.
#Any single digit (09).
[charlist]Any single character in charlist.
[!charlist]Any single character not in charlist.

A group of one or more characters (charlist) enclosed in brackets ([ ]) can be used to match any single character in string and can include almost any character, including digits.

Important rules