expressions clarification

Pete Houston ph1 at openstrike.co.uk
Wed Mar 2 15:27:34 CET 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160302/c8c8a502/attachment.sig>


More information about the amavis-users mailing list