Pages: 1
RSS
Possible to use number comparison in filters?
 
Hi,

here is the case, hope someone can help:

I receive messages with attachments where the name of the attached file is like <number>.zip, where the number of digits in <number> varies. So both 1.zip and 99999999.zip are possible as a name of the attached file.

Now I filter all these with a condition like
Message source | Matches any of | filename="?[0-9]*\.zip

But what I want is to filter only messages where <number> is bigger than a predefined value - say 1500.
So my filter should process a message with an attachment named 1501.zip or 987654321.zip, but should not process a message with an attchment like 1.zip or 1499.zip

Any idea?
Thanks for any suggestions.
 
Try this regexp

filename="?(1(5(?!00)|[6-9])\d{2,}|[2-9]\d{3,})\.zip
Pages: 1