Well, instead of clearing a buffer, write the regular expression in the
way that it would match only once. Note that by default ^ and $ match
only the beginning and end of the buffer, not the newlines in it. For
example, (.*)\n(.*)$ matches two last lines from the buffer.
kind regards,
risto
I tested the rule briefly and for me it fired only once. On the other
hand, I acknowledge I hadn't time to consider every possible side-effect
of the expression. However, you might want to consider the following
expression: (?s).*WY_LOG_TYPE_ERROR\s*\*\*(.*)\*\*$
Due to greedy matching of