Don't understand this match

Denis Beauchemin Denis.Beauchemin at
Wed Mar 1 21:17:50 GMT 2006

Richard Thomas wrote:

> I'm not understanding why a certain filename has triggered the "Attempt
> to hide real filename extension" rule. The filename is
> Shortcut 29 t.xls
> The rule is \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$
> As I understand it, that should match a period, followed by an alpha, 
> followed by two or three alphnumerics, any amount of whitespace and 
> then another period then an alphanumeric three character alphanumeric 
> extension all of this being at the end of the filename.
> The filename in question has only one period.
> Of course, I'm not sure which particular version of regular 
> expressions MailScanner uses (maybe the period is the "match any 
> character" period.
> Is there a bug in the regexp? Is this actually a valid match? Is this 
> just a case of "upgrade to the latest"? Possibly I am just wildly out 
> of date :)
> Thanks
> Rich


I tested it at and it didn't match.


  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x2252 F: 819.821.8045

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3226 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the MailScanner mailing list