expressions clarification
Dino Edwards
dino.edwards at mydirectmail.net
Wed Mar 2 16:01:14 CET 2016
Is there a scenario where whitespace, comments and case should not be ignored?
> -----Original Message-----
> From: amavis-users [mailto:amavis-users-
> bounces+dino.edwards=mydirectmail.net at amavis.org] On Behalf Of Pete
> Houston
> Sent: Wednesday, March 02, 2016 9:28 AM
> To: amavis-users at amavis.org
> Subject: Re: expressions clarification
>
> On Wed, Mar 02, 2016 at 02:06:55PM +0000, Dino Edwards wrote:
> > I'm trying to figure out what the difference between the following
> expressions are:
> >
> > [qr'.\.(mdb)$'ix => 0]
> > [qr'.\.(uue)$'i => 0]
> > [qr'^\.(lha)$' => 0]
> >
> > Mainly, trying to figure out when you put in "ix", "i" or nothing at all at the
> end of the expression.
>
> 'x' means ignore whitespace and comments 'i' means ignore case
>
> perldoc perlre for the full details:
> http://perldoc.perl.org/perlre.html#Modifiers
>
> Pete
> --
> Openstrike - improving business through open source
> http://www.openstrike.co.uk/ or call 01722 770036
More information about the amavis-users
mailing list