Rule/Filter that uses Wildcard

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
bmachia
Mystified Moa
Posts: 9
Joined: Tue Jun 30, 2009 1:01 am

Rule/Filter that uses Wildcard

Mon Oct 28, 2019 9:18 am

I am trying to write a Filter that searches the Header for www123. Only the numbers will always change.

Can I use a wildcard that will search for a 6 character www address, like www### ?

Thanks in advance
Bill
User avatar
rusticdog
Firetrust Monkey
Posts: 15864
Joined: Mon Jun 13, 2005 6:27 pm

Re: Rule/Filter that uses Wildcard

Tue Oct 29, 2019 12:15 am

Hi Bill

You need to use a Regular Expression when using wildcards in a filter.
The syntax for the particular engine is here http://www.regexlab.com/en/deelx/syntax/bas_set.htm

So what would work is changing the filter to use REGEX and then look for something like
www\d{3}

The \d matches any number, the {3} says to match exactly 3 times. If you used {3,} instead, this would match at least three times.


www[:digit:]{2,}

Return to “MailWasher Pro 7”