main logo
Subject: Re: FoxPro 8.0 Capacities
Author: Ed Leafe
Posted: 2003/04/30 21:53:00
 
View Entire Thread
New Search


On Wednesday, April 30, 2003, at 06:17 PM, Mike Stewart wrote:

> I'm getting an error. Steps to repro:
>
> 1. Search on "msvcr70.dll c++" w/o quotes.
> 2. Click on the first item that is returned.
> 3. Alternatively, go to this URL:
> http://leafe.com/archives/showMsg/129083

Ah, I see the problem: the key is in the bottom of the error message:

<br>http://join.msn.com/?page=features/virus<br><br><br><br>', 'c++',
'<span class="msgHilite">c++</span>'), {}, None)
Module /usr/local/zope/2-6-0/Extensions/utils.py, line 5, in
replaceNoCase
Module sre, line 90, in compile
Module sre, line 136, in _compile
error: multiple repeat

The problem was that it was doing a regular expression replacement of
the term 'c++', but '+' is a special character that needs to be escaped
in a regular expression. I've changed the routine to add the proper
escaping.

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://opentech.leafe.com




 
©2003 Ed Leafe
<-- Prior Message New Search Next Message -->