Flyzone wrote:
> On 30 Apr, 17:11, Steven Bethard <[EMAIL PROTECTED]> wrote:
> 
>> You don't need a regexp:;
> 
> I need a regexp.....i'm parsing a file with a rule-file that contains
> also regexp and strings too....

Well then it seems like you might want to rethink this rule-file 
approach since your problem is clearly not amenable to regular expressions.

That said, here's a regexp that might work::

     ((?!two:).)*one((?!two:).)*

That makes a negative lookahead assertion at each character in the string.

STeVe
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to