MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 354

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 353
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 ().
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.
For more information about using the
searchPattern tag, see “Finding server behaviors
on page 369.
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.
Zobrazit stránku 353
1 2 ... 349 350 351 352 353 354 355 356 357 358 359 ... 503 504

Komentáře k této Příručce

Žádné komentáře