Highlight using patterns for searching – HP Integrity NonStop H-Series User Manual

Page 109

Advertising
background image

Using Patterns for Searching

Advanced Editing Features

4–24

058060 Tandem Computers Incorporated

Here is an example of how to use the range feature during a search.

Search for: name
In lines: T+5/B-10
In columns: *+1:R-9
Options:
When found:

Search five lines from

the top and ten from the

bottom of the screen.

Search from one column past

the cursor position to nine lines

from the right of the screen.

Highlight

Using Patterns for Searching

In your letter, you could search once for all the patterns of “name” followed
by a number instead of using SEARCH four times, once for each of the
numbered names. To tell TEDIT to search for variations of an item, you put
the text that varies in brackets in the Search-for field and use the
EXTENDED-SEARCH option. See the following example.

Search for: name[1234]
In lines: F/L
In columns: 1:239
Options: EXTENDED-SEARCH
When found:

Always use

EXTENDED-SEARCH

(or simply E) when

searching for patterns.

Search for any occurrence

of "name" followed by the

number 1, 2, 3, or 4.

Another way to use patterns when searching is to use wild cards to match
any character or certain characters in certain positions. You can search for
very specific things (for example, all the words that end with “ing”) by
using wild cards in patterns. Wild cards for patterns are discussed in detail
in the PS TEXT EDIT Reference Manual.

Note

If you forget what the options for the response lines are for SEARCH (or for any of the other
response line fields), you can get help by pressing the HELP key while you have the
SEARCH response lines displayed on the screen. If you press HELP once, you get a brief
reminder about what to do; if you press HELP again, you get a more detailed discussion.

Advertising
This manual is related to the following products: