Page 1 of 1

Search & Filtering (Rejecting) Executable Attachments

PostPosted: Thu Aug 13, 2020 5:12 pm
by Dominus
I have
Code: Select all
\.[Ee][Xx][Ee](\?|$)
as an expression to search by as suggested on a regex site.

When I search a group the results are lacking.

I shortened the expression to
Code: Select all
\.[Ee][Xx][Ee]
and the results are vastly different.

Can someone explain the difference in the expressions as it applies to newsbin?

I am not skilled in regex.

Re: Search & Filtering (Rejecting) Executable Attachments

PostPosted: Thu Aug 13, 2020 5:27 pm
by Quade
"[.]exe" is all you need. It's case independent so you don't have to worry about upper or lower case.

"[.]exe(\s\"|$)" would be more precise. It means ".exe followed by space, quote or end of line".

"\.[Ee][Xx][Ee](\?|$)"

Is more complicated than you need.

Keep in mind when you use our internet search, it works more like google and doesn't use regular expressions. You can apply a regular expression after you search though in order to filter the results down.