PS TEXT EDIT Reference Manual

PATTERNS
TEDIT Topics
058059 Tandem Computers Incorporated 2–37
For the REPLACE command response lines, enter:
Replace: ?*.>
With: @1!
In lines: */B
In columns: 1:239
Options: E
The wild card pattern
for the search text
The extended-search
option
The default for lines
and columns
The wild card pattern for
the replacement text
The E (extended-search) option indicates that the search-text “?*.>“ and the
replace-text “@1!” are patterns. TEDIT is to search for a period when it
occurs at the end of a line and replace the period with an exclamation
mark (!).
Here are some examples using patterns with the REPLACE command:
1. To replace the first letter of all words in your file that begin with the
letter a (from the first line to the last) with lowercase letter b, enter:
Replace: "a\a"
With: "b@1"
In lines: F/L
In columns: 1:239
Options: E
2. To replace the first occurrence of the first letter of a word in a line (from
the first line to the last) with lowercase b, enter:
Replace: a?*
With: b@1
In lines: F/L
In columns: 1:239
Options: E
Example 2 only searches for the first word in a line that begins with an a.
Example 1 finds all occurrences of words that begin with a.