procmail
[Top] [All Lists]

Re: Trouble with multi-line MATCH

2000-02-17 12:03:46
Ralph SOBEK <sobek(_at_)irit(_dot_)fr> writes:
      On a related note, since "The regexp engine has to keep track
of all of those possibilities", will one day exist a possibility to
backtrack and find the *next* match, in the case that the first one
does not succeed completely.  Can you add this to the "Wish List"?
This may be too much for procmail.  Maybe I should look at something
else.  Any suggestions?

Well, that's what the regexp engine does already.  If later parts of
the regexp don't match then the other possibilities are considered
(actually, it considers them simultaneously).  If you're talking about
applying non-regexp conditions on the later part of the match (e.g.,
"match two multi-digit space separated numbers, requiring the first one
to be larger than the second") then that's a *lot* more complicated.
Perl's mongo regexps can do this with the new, experimental, and scary
"(?{ code })" syntax, but lacking a good base language, this is quite a
bit beyond the capabilities and desgin of procmail.


Philip Guenther