OT: Perl Compatible Regular Expressions
utisoft at gmail.com
Sat Dec 17 20:22:05 GMT 2011
On 17 December 2011 20:11, Paul Welsh <paul at welshfamily.com> wrote:
> Hi all
> Apologies this is off topic.
> I have a quick question about Perl Compatible Regular Expressions.
> I'm using Exim 4.x and a greylist application in conjunction with
> MailScanner obviously.
> The greylist application has a whitelist to cope with senders that,
> when greylisted, try sending again using a different server rather
> than with the same one.
> The whitelist is MTA dependent. Exim supports Perl Compatible Regular
> Expressions but I'm struggling to match on part of the hostname. For
> example, this works fine:
> - matches mail.domain.com, xxx.mail.com, etc
> What I want to match, however, is something like:
> which would match say mail01.domain.com, mail02.domain.com, etc
mail[0-9]*.domain.com should do?
Are you trying to match mail.domain.com too? If you don't want to
match that, then use + instead of *
More information about the MailScanner