rex_sequence_matcher
Introduction
This plugin could find matched pattern in a sequence of symbols.
This plugin could find matched pattern in a sequence of symbols.
Symbols and pattern
This plugin will try to find matched pattern in a sequence of symbols. This sequence of symbols is stored into a FIFO-buffer, each symbol is a character.
For example, if push "U" , then push "L", "R" into this buffer, the content of this buffer will be
This plugin will try to find matched pattern in a sequence of symbols. This sequence of symbols is stored into a FIFO-buffer, each symbol is a character.
For example, if push "U" , then push "L", "R" into this buffer, the content of this buffer will be
"ULR"
The pattern is composed by symbols defined by a string, like
"LR"
In the above example (symbol sequence "ULR"), the pattern "LR" could be found when the "R" symbol has been push.
Note that, comma is reversed for splitting pattern, see the next section for more detail.
Note that, comma is reversed for splitting pattern, see the next section for more detail.
Pattern with comma
User also could add comma into pattern to split the symbols, like
User also could add comma into pattern to split the symbols, like
"L,R"
Remember that there has no space between symbols and comma.
Procedure of patterns matching
There are two ways to do patterns matching, one is
There are two ways to do patterns matching, one is
- Call "Action:Push symbol" to push symbol into symbol buffer (sequence of symbols)
- Checking pattern by "Condition:Is matching" from the tail of buffer.
- Call "Action:Push symbol" to push symbol into symbol buffer (sequence of symbols)
- Each "Condition:On matching" will be triggered to check the pattern. If no one had been matched, "Condition:On no matching pattern" will be triggered at last.
Symbol buffer
The length of this symbol buffer is defined by "Buffer length" in properties table, or reset by "Action:Set buffer length". Remember the length of this buffer must longer then the length of patterns.
"Action:Clean buffer" could clean this symbol buffer.
The length of this symbol buffer is defined by "Buffer length" in properties table, or reset by "Action:Set buffer length". Remember the length of this buffer must longer then the length of patterns.
"Action:Clean buffer" could clean this symbol buffer.
Debugger
The content of current symbol buffer will be shown at debugger.
The content of current symbol buffer will be shown at debugger.