PS TEXT EDIT Reference Manual
PATTERNS
TEDIT Topics
058059 Tandem Computers Incorporated 2–33
What to Enter
Table 2-2 shows the wild cards that TEDIT recognizes.
Table 2-2. Wild Cards for Patterns
Wild Card Definition
@ Means that the character following the “@” is not a wild card but is literal.
For example:
@? — matches a “?”
@@ — matches an “@”
< The beginning of a pattern matches the characters that follow when they
occur at the start of a line. If < is within a pattern, it matches itself. For
example:
<How — matches How (only when “How” occurs at the start of a
line)
ab<c — matches “ab<c”
> At the end of a pattern matches the preceding characters when they occur
at the end of a line. If > is within a pattern, it matches itself. For example:
example:> — matches example: (only when “example:” occurs
at the end of the line)
X>Y — matches “X>Y”
? Matches any single character.
[ ] Matches one of the characters within the brackets. For example:
[ab] — matches a or b
[#*] — matches # or *
[a -z] — matches any one lowercase character, a through z
[^] Matches any character NOT in the list ending with right bracket “].” For
example:
[^a-k] — matches any one character that is not a lowercase
letter, a through k
Note TEDIT does not allow metacharacters such as \A within the brackets.