Examples of wildcard characters
Character | Description | Example |
---|---|---|
c | matches character c (c != '\', '-', ']')" | wh finds wh, but not what or while |
* | matches any sequence of non-Separator characters | wh* finds what, white, and why, but not awhile or watch |
? | matches any single non-Separator character | b?ll finds ball, bell, bill |
[] | matches characters within the brackets. | b[ae] finds ball, bell, but not bill |
''c | matches character c | ? finds ?. but not a? |
lo '-' hi | matches character c for lo <= c <= hi | b[a-c]d finds bad, bbd, and bcd |