Find & Replace Settings

The find and replace options change the behaviour of these operations.
These options are explained below.

  1. Top two 'Find' options:

1. Neither are checked.

The preview example shows the result.
If the find phrase was 'cat', then without 'whole words only' checked, it will even find it in parts of words.
Also, without 'Match case' checked, it will match both upper and lower case letters.

2. 'Find whole words only' checked.

Now if the find phrase is a smaller part of a bigger word, it is ignored.

3. Match case of 'find' phrase checked.

Now the find phrase only matches when the case also matches.
So the find phrase 'cat' will not match 'Cat'.

*NOTE: 'Match case' ONLY looks at the FIRST letter found.

4. Both checked.

If both options are checked, then only whole words beginning with the same case as the find phrase will be found.

2. 'Select found text' option

This is really great if you want to apply formatting to multiple words / phrases in a document!

This option causes all text items found in the document to be selected. 

No highlighting is applied to the found text in this case, as it will already be coloured light blue when it is selected.

NOTE: After the found text is selected, further find / replace commands will only apply to the selected text. Simply click anywhere on the document to remove the selection.

3. 'Replace' options...

(In these examples, the document text is: 'Catching a cat, Cat, or cats.'
The 'find' phrase is 'cat', as in the above examples, and the 'Find whole words only' option is checked.)

1. Adapt case of 'replace' phrase to target is NOT checked.

Then the 'replace' phrase simply replaces the found text unchanged.
(In the example, the word 'Dog', starting with a capital 'D', replaces both the word 'cat' and the word 'Cat'.)

2. Adapt case of 'replace' phrase to target checked.

Then the case of the first letter of the 'replace' phrase is changed to match the word it is replacing. This is very useful when some of the words replaced are at the beginning of a sentence.
(In the example, the word 'Dog' is changed to 'dog' when it replaces 'cat'. )

Using the 'Swap' feature...

When the 'Swap' box is checked, the 'find' and 'replace' phrases reverse.

The diagram below shows how 'swap' affects two simple find/replace phrases.

Note that any find phrases that are regular expressions are not swapped.
Also, there is no affect on find phrases that don't have corresponding replace phrases.