On Thu, Jun 5, 2008 at 8:27 AM, Oliver Fromme <olli@...> wrote: > > 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. Thanks. I will give that a try. John
Message
Re: [milter-greylist] unexpected void backreference
2008-06-05 by John Villalovos
Attachments
- No local attachments were found for this message.