UNIX Regular Expressions for Searching Views
You can use DOS wildcard expressions
or UNIX regular expressions to search views.
Following are the valid regular expression characters:
- x?
- Match zero or one x.
- x*
- Match zero or more xs.
- . (period)
- Match any single character except newline.
- ` (left quote)
- Specifies that the next character should be taken literally. For example,
you would use Notes`* to search for Notes* because the *
is part of the name.
- ^a-z0-9
- Match any single character not in a set.
- [ ] (brackets
- Match any one of the enclosed characters. A hyphen indicates a range
of consecutive characters. For example, [a-z] matches any single
character in a set; [0-9] matches any single digit in a set.
A comma (,) indicates a set or characters or ranges (in other words,
a logical OR). For example, a,b,c,d.
- , (comma)
- Separates a member of a set of values.
- - (dash)
- Specifies a range of characters.
- ()
- Match the enclosed group of regular expressions.
- |
- OR operator
- ^ (caret)
- Match to the beginning of the line.
- $ (dollar sign)
- Match to the end of the line. For example, [^0-9][0-9]$ specifies
a two digit number. The first and last characters are both numbers.
- abc
- Match all of a,b,and c, respectively.
- \s
- Match whitespace character.
- \S
- Match non-whitespace character.
- \d
- Match one digit.
- \D
- Match one non-digit. Same as [^0-9].
- \0
- Match a null character.
Note: Blanks (spaces) are considered part of the search expression.
Examples
Following are several examples of search commands. The examples are
based on views containing the following resources:
- Resource 1: Notes client
- Resource 2: Mail switch
- Resource 3: OfficeVision
- Resource 4: SMTP Gateway
- Note*
- Search for resources that start with Note.
Results: Notes client.
- Note``*
- Search for resources that start with Note`.
Results: No resources.
- *[M,N]*
- Search for resources that contains either an uppercase M or N.
Results: Mail switch, SMTP Gateway, and Notes client.
- * *
- Search for resources with at least one imbedded blank.
Results: Mail switch, SMTP Gateway, and Notes client.
- (Note*|Office*)
- Search for resources that starts with either
Note or Office. Results: Notes client and OfficeVision.
- ([N-P]*|*[u-y])
- Search for resources that starts with uppercase N
through uppercase P or ends with lowercase u through lowercase y.
Results: Notes client, OfficeVision, and SMTP Gateway.
- ^[^NS]*
- Search for resources that don't start with N
or S. Results: Office Vision, Mail switch.