Macromedia dreamweaver 8-extending dreamweaver 사용자 설명서
354
Server Behaviors
■
The
comment
value searches only within the HTML comments
<! ... >
, as shown in the
following example:
<searchPatterns whereToSearch="comment">
This example searches tags such as
<!-- my comment here -->
.
■
The
text
value searches only within raw text sections, as shown in the following example:
<searchPatterns whereToSearch="text">
<searchPattern>XYZ</searchPattern>
</searchPatterns>
This example finds a text node that contains the text
XYZ
.
<searchPattern>
Description
This tag is a pattern that identifies participant text and extracts parameter values from it. Each
parameter subexpression must be enclosed in parentheses ().
parameter subexpression must be enclosed in parentheses ().
You can have patterns with no parameters (which are used to identify participant text),
patterns with one parameter, or patterns with many parameters. All non-optional patterns
must be found, and each parameter must be named and found exactly once.
patterns with one parameter, or patterns with many parameters. All non-optional patterns
must be found, and each parameter must be named and found exactly once.
For more information about using the
searchPattern
tag, see
Parent
searchPatterns
Type
Block tag.
Required
Yes.
Values
searchString
,
/regularExpression/
,
<empty>
■
The
searchString
value is a simple search string that is case-sensitive. It cannot be used
to extract parameters.
■
The
/regularExpression/
value is a regular expression search pattern.