clamav-devel May 2009 archive
Main Archive Page > Month Archives  > clamav-devel archives
clamav-devel: Re: [Clamav-devel] PATCH: Enhanced exclude / inclu

Re: [Clamav-devel] PATCH: Enhanced exclude / include support for clamscan

From: Mark Allan <markjallan_at_nospam>
Date: Thu May 21 2009 - 14:25:30 GMT
To: ClamAV Development <clamav-devel@lists.clamav.net>

On 21 May 2009, at 3:19 pm, Tomasz Kojm wrote:
> On Tue, 19 May 2009 15:49:23 +0100
> Mark Allan <markjallan@gmail.com> wrote:
>
>> It would also eliminate another issue I've had to work
>> around which is the lack of case-insensitive regex matching - I could
>
> BTW, the SVN version of ClamAV supports case-insensitive regex
> matching.You
> just need to precede the regex with (?i), eg.
>
> clamscan --exclude-dir="(?i)^/SyS$"
>
> will skip /sys, /Sys, /sYs, /syS, /SYs, /SyS, /sYS, and /SYS :-)

Yeah I spotted that this morning. Superb news on that and the --file- list option. Thanks :-)



http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net