-
Notifications
You must be signed in to change notification settings - Fork 0
template match
Alexander Chernyshev edited this page May 10, 2022
·
3 revisions
Match rule is one of primitives used in OTLoV. It's not used as an independent element, but it is embedded into other elements. It allows to narrow down selection of targets.
Normally Match rule is directly embedded into higher-level element using Match
, Exclude
and RO
attributes, but sometimes there are more than 1 possible Match rules - then prefixes are used. Refer to individual higher-level elements for exact usage.
Sample Highlight
element syntax with embedded Match rule:
<Highlight ... Match='' Exclude='' RO=''/>
...
denotes other omitted attributes.
Name | Type | Meaning |
---|---|---|
Match |
RegEx pattern | Default = empty, matches anything. A pattern that must match a line or a header. |
Exclude |
RegEx pattern | Default = empty, matches nothing. A pattern that must NOT match a line or a header. |
RO |
0...1023 | Default = 1. RegEx options. Defines options used for parsing (sum of individual values). Default of 1 means IgnoreCase (done for the sake of simplicity, can be overriden). |
This matrix shows which elements will be selected for further processing depending on Match
and Exclude
patterns matching:
Events |
Match empty |
Match match |
Match failure |
---|---|---|---|
Exclude empty |
- | picked | - |
Exclude match |
- | - | - |
Exclude failure |
picked | picked | - |