Re: [Simple-evcorr-users] Extract a block of text between two markers

2011-03-28 Thread Risto Vaarandi
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

Re: [Simple-evcorr-users] Extract a block of text between two markers

2011-03-28 Thread Risto Vaarandi
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