Page 1 of 1

filename .rar & filename .exe

PostPosted: Wed Mar 04, 2009 9:34 am
by usenetaww
Hi,

I see alot of posts with a space between . and rar, and . and exe. How do I filter out these?

Edit: I did mean between the filename and dot.extension. Thanks for the help! I edited the topic too.

PostPosted: Wed Mar 04, 2009 10:02 am
by Quade
[.]\srar
[.]\sexe

Are you sure? I've never seen any posts like this.

\s[.]rar
\s[.]exe

Is space before the extension dot

PostPosted: Wed Mar 04, 2009 10:08 am
by usenetaww
Quade wrote:[.]\srar
[.]\sexe

Are you sure? I've never seen any posts like this.

\s[.]rar
\s[.]exe

Is space before the extension dot


Thanks for answering. I got it wrong. There is a space between the filename and .rar or .exe.

I will use

\s[.]rar
\s[.]exe

then.

Thank you!

PostPosted: Wed Mar 04, 2009 10:27 am
by Quade
Yeah, put that in the subject and filename reject sections of the global filter to make it apply to all groups.

\s = space
[.] = literal dot
rar/exe actual pattern match.

So, it's saying "match any pattern that has space then dot, then RAR or EXE

You could also do it with a single RE

\s[.](rar|exe)

Which is probably more efficient.

You can test these in the "Find" box. It uses the same syntax.

PostPosted: Wed Mar 04, 2009 1:17 pm
by usenetaww
Thank you that worked great. Now it filters the bad files when I do Internet searches too :D

Holy cow...

PostPosted: Sat Mar 28, 2009 1:29 pm
by positron
Just choked a list from 465813 entries to 8744 by adding just this one filter.

:)

Thanks!

PostPosted: Sat Mar 28, 2009 1:55 pm
by Quade
Nice. You know you can improve performance by using that in the "Find" box, Ctrl-A to select everything and then "Shift-Del" to simply delete them from disk.

Filters are good but, deleting the bad stuff will actually save disk space AND improve performance.