[Esd-l] regexp not warking

George Chelidze wrath at geo.net.ge
Sun Dec 12 23:11:30 PST 2004


Hello John,

Don't want to bother you with my notice but seems devel version contains
  old regular expressions noted below.

Best Regards,

George Chelidze wrote:
> 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