On Thu, 23 Jun 2005, Herb Martin wrote:
> Should that logwrite show up in the debug output? Is there
> something like debugwrite?
logwrite writes immediately to Exim log, but if debugging is turned on,
writes to the log are also written to the debug output.
> > The regex looks OK, though it is not the fastest way to write
> > a regex for "ends with". But with short strings it probably
> > won't matter much.
>
> I would be happy to see a better way...
^(?>.*)(?<=abc|defg|hijkl|...)
is the fastest way to match "ends with abc or defg or hijkl or..." because
there is no backtracking. The only restriction is that each alternative
must be of a fixed length.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book