MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 422

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Character
\f
\n
\r
\s
\S
\t
\w
\W
Control+Enter or
Shift+Enter
(Windows), or
Control+ Return
or Shift+Return
or Command+
Return
(Macintosh)
Use parentheses to set off groupings within the regular expression to be referred to later. Then use
$1, $2, $3, and so on in the Replace With field to refer to the first, second, third, and later
parenthetical groupings.
Note: In the Search For text box, to refer to a parenthetical grouping earlier in the regular expression,
use \1, \2, \3, and so on instead of $1, $2, $3.
For example, searching for (\d+)\/(\d+)\/(\d+) and replacing it with $2/$1/$3 swaps the day and
month in a date separated by slashes, thereby converting between American-style dates and
European-style dates.
Related topics
"Searching for tags, attributes, or text contained in specific tags" on page 428
"Saving search patterns" on page 429
422
Chapter 20: Coding in Dreamweaver
Matches
Form feed.
Line feed.
Carriage return.
Any single white-space
character, including space, tab,
form feed, or line feed.
Any single non-white-space character.
A tab.
Any alphanumeric character, including
underscore. Equivalent to [A-Za-z0-
9_].
Any non-alphanumeric character.
Equivalent to [^A-Za-z0-9_].
Return character. Make sure that you
deselect the Ignore Whitespace
Differences option when searching for
this, if not using regular expressions.
Note that this matches a particular
character, not the general notion of a
line break; for instance, it doesn't match
a
tag or a
tag. Return
<br>
<p>
characters appear as spaces in Design
view, not as line breaks.
Example
matches "book" in "blue book"
\sbook
but nothing in "notebook"
matches "book" in "notebook"
\Sbook
but nothing in "blue book"
b\w* matches "barking" in "the barking
dog" and both "big" and "black" in "the
big black dog"
\W matches "&" in "Jake&Mattie" and
"%" in "100%"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents