Change the sequence of a pattern, Remove page breaks – Nisus Writer Pro User Manual

Page 334

Advertising
background image

314

Using PowerFind

Finding and Replacing Text

2. Click in the Replace box and choose Return from the Special Characters set.
3. Check Whole File and click Replace All to remove all blank lines.

Remove page breaks

You can insert forced page breaks in your Nisus Writer Pro documents by choosing the menu
command Insert > Page Break. You can also find and remove them using PowerFind.

1. Click in the Find box and choose Any Break from the Special Characters set.
2. Leave the Replace box blank.
3. Click Replace All to remove all page breaks created using the menu command Insert > Page

Break.

!

Beware! This removes all inserted breaks, page breaks as well as section breaks.

Change the sequence of a pattern

These instructions explain how to change all occurrences of a date entered as dd/mm/yy (for
example 23/06/73) to mm/dd/yy. (or 06/23/73).

1. Click in the Find box and insert Capture from the Match column in the PowerFind Browser

window.

2. Type a slash:

/

3. Place your insertion point between the two portions of the “Capture” metacharacter.
4. Insert AnyDigit twice from the Wild Card column in the PowerFind Browser window.

So far, the Find expression is as illustrated in Figure 346.

Figure 346

The “Capture any two digits followed by a slash” PowerFind expression

1. Select what you see in the Find what box, then choose Copy then Paste it in twice.
2. Delete the final slash “/” to finish the expression so that it appears as illustrated in Figure 347.

Figure 347

The “Capture any two sets of digits separated by slashes” PowerFind expression

Here each set of the Capture and AnyDigit represents the two digits of the month followed by
the slash “06/” then the day and slash “23/” and finally the year “73” the three things you want
to find and switch.

!

Not only can you resize the Find/Replace window, but, if some of the expression is still
hidden, a scrollbar appears.

3. Click in the Replace box and use the Match column and your keyboard to create the Replace

expression illustrated in Figure 348.

Figure 348

A PowerFind replace expression changing a sequence of captured text

Nisus Writer Pro uses the Captured found text to define the numbered Captured groupings;
that is, the first set of Captured text surrounds what will be produced in “Captured1”. The
“Capture” stores the found expression so that it can be recalled when using the numbered
Captured characters in the Match column. In this example, the first Capture defines the two
numbers, found in the text, not the symbols AnyDigitAnyDigit, to be recalled when Captured1
is used.
So, in the example, Captured2 represents the day (now at the beginning) and Captured1
represents the month (now appearing in second place).

4. Choose Entire File, from the Where pop-up menu then click Find All.
5. Click Replace All.

Advertising