[Esd-l] regexp not warking

George Chelidze wrath at geo.net.ge
Thu Oct 21 04:54:30 PDT 2004


Hello,

Seems I have found the solution.

Instead of

s/([^\(])\?/$1./g;

the following 2 recipes one after another:

s/\?\?/?./g;
s/([^\(])\?|^\?/$1./g;

Instead of

s/([^\\])\./$1\\./g;

the following 2 recipes one after another:

s/\.\./.\\./g;
s/([^\\])\.|^\./$1\\./g;

Best Regards,

George Chelidze wrote:
> Hello,
> 
> I was curious why sanitizer catches every .exe file in zip archive while 
> I have removed "*.exe" from poisoned-files. I have find out that "?.exe" 
> token is not replaced correctly before regexp match is done. really:
> 
> s/([^\(])\?/$1./g won't match "?.exe" because there is no character 
> before "?", furthermore, it doesn't work as it should if number of "?" 
> are listed one after another. for example "????????.exe".
> 
> The same way s/([^\\])\./$1\\./g won't work for "..exe" and ".......exe"
> 
> Any comments?
> 
> Best Regard,

-- 
George Chelidze


More information about the esd-l mailing list