PS TEXT EDIT Reference Manual

PATTERNS
TEDIT Topics
2–38 058059 Tandem Computers Incorporated
There are two forms of wild card patterns that can be used in the “With:
field of the REPLACE command when you use the extended-search option:
1. @0—inserts all the characters matched with the search-text in the
replace-text.
2. @n—where n is 1-9, and inserts the characters matched by the nth
indefinite part of the search-text. The indefinite part of the search-text
is either the ?, [ ], \I, \S, \A, \U, \L, or \N optionally followed by *.
For example, given the pattern ==\N*\S\U\L\L.\S\N*== and the match
for this pattern is:
==03/Dec./1945==
The results would be:
@0 is ==03/Dec./1945==
@1 is 03
@2 is /
@3 is D
@4 is e
@5 is c
@6 is /
@7 is 1945
Note The characters “==“ and “.” are not included (except in @0) because they are literal.
Related Commands
REPLACE substitutes a replace-text for a search-text.
SEARCH finds a search-text in your file.