Regex Filter Question

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
allangjohnson
Travelling Tuatara
Posts: 48
Joined: Fri Jul 09, 2010 9:15 am

Regex Filter Question

Wed Jul 21, 2010 10:09 am

I have a filter from my old version of MW that looks for

doc.scr|doc.pif|mp3.pif|doc.pif|zip.pif|zip.scr|mp3.scr

in the header and

.lnk|.bat|.vbs|.vbe|.jse

in the body of an email. Is this done correctly? It flagged an email that as far as I can tell contains none of these, except for lnk without the leading dot.

AJ
User avatar
stan_qaz
Omniscient Kiwi
Location: Gilbert, Arizona
Posts: 8671
Joined: Fri Jul 25, 2008 5:13 am

Re: Regex Filter Question

Wed Jul 21, 2010 11:47 am

That looks like a regex filter, if it is the dot isn't a search character but a wildcard meaning any character. Replace the . everywhere you really want a dot and not a wildcard with \. and you should have it working right.

http://www.regexlab.com/en/deelx/syntax.htm main page

http://www.regexlab.com/en/deelx/syntax/bas_sesc.htm on the dot

Match any character except newline(\n). Use "\." to match "." itself
allangjohnson
Travelling Tuatara
Posts: 48
Joined: Fri Jul 09, 2010 9:15 am

Re: Regex Filter Question

Thu Jul 22, 2010 12:18 am

So the way it was before, 'lnk' preceded by anything at all would trip the filter. Thanks.

Return to “MailWasher Pro 7”