John Villalovos wrote:
> Jun 3 08:39:47 john-desktop milter-greylist: unexpected void
> backreference no 1 in regex /.*@\(.*\.\)*example\.com/ against
> "<example@...>"
I'm afraid I can't explain the message. But FWIW, I use
a slightly different regex for that kind of things:
/.*[@.]example\.com/
Its purpose is the same: It matches someone@...
as well as someone@..., but it does not
match someone@....
This regex is more efficient, because grouping with \(\)
combined with "*", "+" or "?" is less efficient than using
character sets with "[]" like above (at least in the regex
library I'm familiar with). It's also less dependent on
the regex implementation and dialect; it works with basic
REs as well as with extended REs.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758, Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"I invented Ctrl-Alt-Delete, but Bill Gates made it famous."
-- David Bradley, original IBM PC design teamMessage
Re: [milter-greylist] unexpected void backreference
2008-06-05 by Oliver Fromme
Attachments
- No local attachments were found for this message.