Find and replace text
You can use Find to quickly locate words or phrases in a source or node, including word or phases in annotations.
If you want to edit the content of a source, you can use Find and Replace to locate specific text and automatically replace it with new text—you can also find and replace text formatted in a specific heading style.
What do you want to do?
Find text
While you are working with a source or node in Detail View, you can search for specific text.
-
In Detail View, place the cursor in a source or node.
-
On the Home tab, in the Editing group, click Find.
Keyboard Shortcut To display the Find Content dialog box, press CTRL+F.
The Find Content dialog box is displayed.
-
Under Find What, in the Text box, enter the text you want to search for. Click the Special button, if you want to include special characters such as paragraph marks and tabs.
-
Under Find Options you specify the following options:
-
Look in You can search in text, in annotations or both.
-
Search You can search the entire content, or search up or down from your current position.
-
Match case Search for an exact combination of upper and lower case letters.
-
Find whole word Find the complete word that you entered in the Text box. For example, if you search for stick the words tick and sticky will not be found.
-
Match entire cell contents Find the text you entered in the Text box, only when it matches the entire content of a dataset cell.
-
Find within selected column Search for the text in the currently selected dataset column.
-
Click Find Next.
NOTE
-
In documents, memos and externals, you can find occurrences of text in a specific paragraph style—select the style from the Style list. You can also find a specific paragraph style—leave the Text box empty and select a style from the Style list.
-
When you apply a filter to a column in a dataset, transcript or picture log, records are hidden—only text in visible records will be found.
-
If you want to search for specific text in multiple sources, refer to Run a Text Search query.
Find and replace text
You can automatically replace a word or phrase with another—for example, you can replace sunset with dusk.
-
Make sure you are in edit mode.
-
Click in the source.
-
On the Home tab, in the Editing group, click Replace.
The Replace Content dialog box is displayed.
-
Under Find What, in the Text box, enter the text you want to search for.
-
Under Replace With, in the Text box, enter the replacement text.
-
Under Find Options, you specify the following options::
-
Look in You can search in text, in annotations or both.
-
Search You can search the entire content, or search up or down from your current position.
-
Match case Search for an exact combination of upper and lower case letters.
-
Find whole word Find the complete word that you entered in the Text box. For example, if you search for stick the words tick and sticky will not be found.
-
Match entire cell contents Find the text you entered in the Text box, only when it matches the entire content of a dataset cell.
-
Find within selected column Search for the text in the currently selected dataset column.
-
Click Find Next.
-
Click Replace.
NOTE
-
To replace all occurrences of the text, click Replace All.
-
In PDF and dataset sources, you can replace text in annotations, but text within the source cannot be changed in NVivo.
-
You do not need to enter edit mode, if you want to change the text in annotations only.
Find and replace paragraph styles
While working with documents, memos and externals, you can search for and replace paragraph styles. For example, you could find all text formatted as Heading 1 and change it to Normal.
-
Make sure you are in edit mode.
-
On the Home tab, in the Editing group, click Replace.
The Replace Content dialog box is displayed.
-
Under Find What, in the Style list, select the paragraph style you want to search for.
-
Under Replace With, in the Style list, select the replacement style.
-
Under Find Options, you can choose to search
-
In text—annotations do not have styles
-
All of the source or up or down from the current cursor position.
-
Click Find Next.
-
Click Replace.
NOTE To replace all occurrences of the paragraph style, click Replace All.
Using special characters
You can use special characters when searching for text in a source or node. For example, the symbols ^$ can be used to replace any letter—s^$t would find sat and set. To access the list of special characters, click the Special button next to the text you are searching for.
To find | Symbol | Description |
A paragraph mark | ^p | Although you cannot see paragraph marks in NVivo sources—you can find the beginning of a new paragraph using this symbol. |
Tab character | ^t | Although you cannot see tab characters in NVivo sources—you can find locations where a tab has been inserted. |
Any character | ^? | Find any single character—for example, 1^?10 will find 1:10 and 1/10. |
Any digit | ^# | Find any single digit—for example, 2^# will find 21, 22, 23 and so on. |
Any letter | ^$ | Find any single letter—for example F^$n will find fun, fan and fin. |
Caret character | ^^ | Finds the caret character. |
Ellipsis character | ^| | Finds occurrences of the ellipsis( ...). |
White space | ^w | Finds all occurrences of white space—for example, the space between two words. |