Adobe 38040334 - Dreamweaver CS3 User Manual page 274

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Type
Block tag.
Required
Yes.
Values
,
searchString
/regularExpression/
• The
value is a simple search string that is case-sensitive. It cannot be used to extract parameters.
searchString
• The
/regularExpression/
• The
value is used if no pattern is given. It is always considered a match, and the entire value is assigned
<empty>
to the first parameter.
In the following example, to identify the participant text
define a simple pattern, followed by a precise pattern that also extracts the two parameter values:
<searchPattern>Field.Items</searchPattern>
<searchPattern paramNames="rs,col">
<![CDATA[
/<%=\s*(\w+)\.Field\.Items\("(\w+)"\)/
]]>
</searchPattern>
This example matches the pattern precisely and assigns the value of the first subexpression (
and the second subexpression (
Note: It is important that regular expressions start and end with a slash (/). Otherwise, the expression is used as a literal
string search. Regular expressions can be followed by the regular-expression modifier
in
). For example, VBScript is not case-sensitive, so it should use
/pattern/i
and should use
/pattern/
Sometimes you might want to assign the entire contents of the limited search location to a parameter. In that case,
provide no pattern, as shown in the following example:
<searchPatterns whereToSearch="tag+OPTION">
<searchPattern>MY_OPTION_NAME</searchPattern>
<searchPattern paramNames="optionLabel" limitSearch="innerOnly">
</searchPattern>
</searchPatterns>
This example sets the
optionLabel
<searchPattern> attributes
The following items are valid attributes of the
paramNames
Description
This attribute is a comma-separated list of parameter names whose values are being extracted. These parameters are
assigned in the order of the subexpression. You can assign single parameters or use a comma-separated list to assign
multiple parameters. If other parenthetical expressions are used but do not indicate parameters, extra commas can
be used as placeholders in the Parameter Name list.
,
<empty>
value is a regular expression search pattern.
) to parameter
\w+
col
.
parameter to the entire
searchPattern
<%= RS1.Field.Items("author_id") %>
.
/pattern/i
contents of an
innerHTML
tag.
DREAMWEAVER CS3
Extending Dreamweaver
, you can
) to parameter
\w+
to indicate case-insensitivity (as
i
. JavaScript is case-sensitive
tag.
OPTION
268
rs

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents