Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] unexpected void backreference

2008-06-05 by Oliver Fromme

Benoit Branciard wrote:
 > Oliver Fromme wrote:
 > > I'm afraid I can't explain the message.  But FWIW, I use
 > > a slightly different regex for that kind of things:
 > > 
 > > /.*[@.]example\.com/
 > 
 > I don't understand why many people (several examples were posted on this 
 > list) insist on using regexps with ".*" at the beginning or the end of 
 > the expression...

For documentation purposes.  It explicitely expresses the
intent that anything can precede it.

Of course you are right, it doesn't change the meaning of
the expression.  It also doesn't change the performance,
so there is no reason not to write ".*" at the beginning.

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

"And believe me, as a C++ programmer, I don't hesitate to question
the decisions of language designers.  After a decent amount of C++
exposure, Python's flaws seem ridiculously small." -- Ville Vainio

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.