Note
To search for a character that is defined as a wildcard, type a backslash
(\) before the character. For example, to find the text $5.00, you would
conduct a search using \$5\.00.
To use wildcards and regular expressions when searching and replacing:
1) On the Find & Replace dialog box, click More Options to see more choices.
On this expanded dialog box (Figure 65), select the Regular expressions
option.
2) Type the search text, including the wildcards, in the Search for box and the
replacement text (if any) in the Replace with box. Not all regular expressions
work as replacement characters; the line break (\n) is one that does work.
3) Click Find, Find All, Replace, or Replace All (not recommended).
Table 2. Examples of search wildcards (regular expressions)
To find
Use this
expression
Examples and comments
Any single character .
b.d finds bad, bud, bid, and bed.
One of the specified
characters
[xyz] b[iu]n finds bin and bun.
Any single character
in this range
[x-y] [r-t]eed finds reed, seed, and teed; ranges
must be in alphabetically ascending order.
Any single character
except the characters
inside the brackets
[^x] p[^a]st finds post and pest, but not past.
The beginning of a
word
\<start \<log finds logbook and logistics, but not
catalog.
The end of a word end\> log\> finds catalog, but not logistics.
A paragraph marker $ Does not work as a replacement character.
Use \n instead.
A line break \n Finds a line break that was inserted with
Shift+Enter. When used as a replacement
character, it inserts a paragraph marker.
Inserting special characters
A “special” character is one not found on a standard English keyboard. For example,
© ¾ æ ç ñ ö ø ¢ are all special characters. To insert a special character:
1) Place the cursor in your document where you want the character to appear.
2) Click Insert > Special Character to open the Special Characters dialog box.
3) Select the characters (from any font or mixture of fonts) you wish to insert, in
order; then click OK. The selected characters are shown in the lower left of
the dialog box. As you select each character, it is shown on the lower right,
along with the numerical code for that character.
68 OpenOffice.org 3.3 Writer Guide
Kommentare zu diesen Handbüchern