Writer Guide
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
.
Characters at the
beginning of a
paragraph
^chars ^term
Characters at the
end of a paragraph
chars$ term.$
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.
An empty paragraph ^$
A tab character \t
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.
Chapter 3 Working with Text 73