Character |
Use |
* (asterisk) |
Matches zero, one, or more characters. |
? (question mark) |
Matches any single character, but will not match zero characters. |
[ ] (brackets0 |
Matches any one of the characters enclosed within the brackets. If a pair of characters is separated by a dash and contained within brackets, the pattern matches any character that falls between the two characters in the current locale. |
searching for special characters |
Precede with backslash \* \& \[ \] |
a[bz]
matches strings ab and az
does not match ac
a*d
matches ad, abd and abcd
does not match abc
a*d*
matches ad, abcd, abcdef, aaad, adddd
does not match abc
Copyright © 2003 ON Technology Corporation. All rights reserved.