Select all instances of a found expression at once, Powerfind guidelines, Match set – Nisus Writer Express User Manual

Page 201

Advertising
background image

Polishing & Managing Documents

181

Nisus Writer Express can find all capitalized words, one at a time.

Select all instances of a found expression at once

Click Find All.

Convert a PowerFind expression to a PowerFind Pro expression

1.

Choose PowerFind Pro from the Using pop-up menu.
Do this for its learning value. While you can perform many functions with the menus of
PowerFind, the ability to write your expressions directly gives you much greater flexibility.
The expression in the Find what box now looks like this

[A-Z][a-z]*

Notice how PowerFind Pro uses symbols in place of the graphic representation of the menu
commands. You’ll learn what these and other PowerFind Pro symbols mean in the section
beginning on page 195.

You can convert PowerFind expressions to PowerFind Pro, but, you cannot convert PowerFind Pro
expressions back to PowerFind.

PowerFind Guidelines

Here are a few hints to keep in mind when working with PowerFind.

Replace expressions must be unique. Amy “Wild Card”, “Repeat” or the “Space or Tab
metacharacters cannot be used in a Replace with expression, because they are not unique. On
the other hand, a Replace with expression can contain metacharacters like

Or

Because they always mean the same thing.

If the search doesn’t work as expected, look over the options selected in the Find/Replace
window (for example, Whole Word and Entire File). Also verify the position of the insertion
point.

Match Set

Use Match menu commands to match phrases found in Find and Replace expressions.

Capture()

Causes the matched text it encapsulates to be available as one of the 'Captured'
items either later in the search string or in the replace string. This expression is
valid only in the search string, not in the replace string.

Captured1 - Captured10

Corresponds to that numbered portion of the Find expression (built within
parentheses), use in both Find and Replace expressions.

OtherCaptured

Corresponds to that numbered portion of the Find expression (built within
parentheses), use in both Find and Replace expressions.

LookAhead() and LookBehind()

Neither look-ahead nor look-behind “capture” anything. A “look-ahead or look-
behind has a nested expression (or perhaps a “grouped”, “sub”, or “contained”
expression). These each require that the nested expression be present, but the
content itself is not included (that is “captured”) in the match. In other words, they
are zero-width and do not contribute to the full match. They function like the
start/end of line anchors (“$” and “^”) but allow somewhat arbitrary expressions.
Only look-ahead allows arbitrary expressions. Look-behind requires the
subexpression to be fixed in width, or some combination of fixed width
expressions.
As an example, let’s say you want to find the last word in any sentence, but don’t
want to select the punctuation mark itself. You could use this expression:

Advertising