<pattern>

Element: pattern

Child Elements: <none>

Description: Defines a pattern used for matching.

Example: <pattern score=".1" case="insensitive" replace="replacechars" insert_before="prefix_" insert_after="_suffix">cat</pattern>

Attribute

Value

Default

Description

pattern

<actual pattern>

 

A value is required.

score

>= 0

1

See description in <entry>.
case

sensitive

1/on/yes/true

insensitive

0/off/no/false

inherited

inherited

Determines whether a match is case sensitive. The value inherited accepts the case matching mode of the grammars parent.
replace

<text to replace the match>

<no default>

The matched text is replaced with the specified text.

insert_before

<text to insert before the match>

<no default>

Matched text is prefixed with the specified text.

insert_after

<text to insert after the match>

<no default>

Matched text is suffixed with the specified text.

debug

true

1/on/yes/true

false

0/off/no/false

inherited

inherited

Displays verbose information for the pattern element during compilation. The value inherited accepts the debug mode of the entity parent.

_HP_HTML5_bannerTitle.htm