Testing and Maintaining Web Pages
113
Replacing extended and special characters
Use the Search > Replace Extended Characters command to either replace extended
characters with character entities, or replace character entities with the equivalent
extended characters. This command works only in the current document.
Replacing double-spaced lines
Because of the way different operating systems treat carriage returns, text files saved
on UNIX or Macintosh systems might become double-spaced when opened in Studio.
Use the Search > Replace Double Spacing with Single Spacing command to collapse
double-spaced lines to single-spaced lines in the current document.
Searching with regular expressions
HomeSite supports searching with regular expressions to match patterns in character
strings in the Extended Find and Replace commands. Regular expressions allow you to
specify all the possible variants in a search and to precisely control replacements.
Ordinary characters are combined with special characters to define the pattern for the
search. The RegExp parser evaluates the selected files and returns each matching
pattern.
When you select the Find option, the matching pattern is added to the find list. When
you select the Replace option, the replacement text is inserted. When replacing a
string, it is just as important to ensure what is not matched as what is. Simple regular
expressions can be concatenated into complex search criteria. Note that enabling the
Regular expressions option in the Extended dialog boxes disables the Skip tags while
searching option.
Note
The rules listed in this section are for creating regular expressions in
HomeSite. The rules used by other RegExp parsers might differ.
The RegExp engine processes the entire document, it does not parse on a line-by-line
basis. This affects the way the characters such the asterisk (*), carat (^) and dollar sign
($) should be used.
Special characters
Because special characters are the operators in regular expressions, in order to
represent a special character as an ordinary one, you need to precede it with a
backslash. To represent a backslash, for instance, use a double backslash (\\).
Содержание COLDFUSION STUDIO 4.5-USING COLDFUSION...
Страница 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Страница 16: ...xvi Contacting Allaire...
Страница 90: ...82...
Страница 130: ...122...
Страница 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Страница 182: ...190...