Java Desktop System Email and Calendar User Guide

Finding and Replacing Text in a Message

When you compose a message, you can search for text in the message. You can also replace the text you search for.

To Find Text in a Message

To search for text in a message, perform the following steps:

  1. Choose Edit -> Find. Type the text to search for in the text box of the Find dialog.

    Alternatively, you can use a regular expression to search for text. A regular expression is a way to specify a text pattern to search for. For example, the regular expression t*e finds the text the, time, table, and so on.

    To use a regular expression to search for text, choose Edit -> Find Regular Expression. Type the regular expression to search for in the text box of the Find Regular Expression dialog.

  2. Select the Backward option to begin the search from the end of the message, or from the cursor location, and proceed towards the start of the message.

  3. Select the Case sensitive option to find occurrences only of the text that match the case of the text that you type in the dialog.

  4. Click on the Find button. If the text is found in the message, the first match is highlighted in the message.

  5. To find the next occurrence of the text, choose Edit -> Find Again.

To Replace Text in a Message

To search for text, and replace the text with alternative text, perform the following steps:

  1. Choose Edit -> Replace.

  2. Type the text to search for in the Replace text box.

  3. Type the text to use to replace the text that you find, in the With text box.

  4. Select the Search backward option to begin the search from the end of the message, or from the cursor location, and proceed towards the start of the message.

  5. Select the Case sensitive option to find occurrences only of the text that match the case of the text that you type in the dialog.

  6. Click on the Find and Replace button. If the text is found in the message, a Replace confirmation dialog is displayed. Use the buttons on the Replace confirmation dialog to replace the text in the message, as described in the following table.

    Button 

    Function 

    Replace all

    Replaces all occurrences of the search text with the replacement text. 

    Next

    Skips the current occurrence of the search text, and finds the next occurrence. 

    Close

    Closes the Replace confirmation dialog, and does not replace any text.

    Replace

    Replaces the current occurrences of the search text with the replacement text, and finds the next occurrence.