Finding and Replacing Text and Formatting

From Apache OpenOffice Wiki
Jump to: navigation, search



Finding and Replacing Text and Formatting

Writer has two ways to find text within a document: the Find toolbar for fast searching and the Find & Replace dialog. In the dialog, you can:

  • Find and replace words and phrases
  • Use wildcards and regular expressions to fine-tune a search
  • Find and replace specific formatting
  • Find and replace paragraph styles

Using the Find Toolbar

If the Find toolbar is not visible, you can display it using View → Toolbars → Find.

AOO41GS04 016 FindBar.png

To use the Find toolbar, click in the box and type your search text, then press Enter to find the next occurrence of that term. Click the Find Next or Find Previous buttons (up and down arrows) as needed.

Using the Find & Replace dialog

To display the Find & Replace dialog, use the keyboard shortcut  Ctrl  +  F  or choose Edit → Find & Replace from the menu bar. Optionally, click the  More Options  button to expand the dialog; the button changes to  Fewer Options .

AOO41GS04 017.png
Figure 46: Expanded Find & Replace dialog

To use the Find & Replace dialog:

  1. Type the text you want to find in the Search for box.
  2. To replace the text with different text, type the new text in the Replace with box.
  3. You can select various options such as matching the case, matching whole words only, or doing a search for similar words.
  4. When you have set up your search, click  Find . To replace text, click  Replace  instead.

Apache OpenOffice uses Regular Expression to perform wildcard searches. This is a powerful tool that can do complex text matching. See the Help for a brief introduction, and there are many web resources that provide in depth tutorials.

For more information on using Find & Replace, see the Writer Guide.

Tip.png If you click Find All, Writer selects all instances of the search text in the document. Similarly, if you click Replace All, Writer replaces all matches.


Documentation caution.png Use Replace All with caution; otherwise, you may end up with some hilarious (and highly embarrassing) mistakes. A mistake with Replace All might require a manual, word-by-word, search to fix.
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools