<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I want to define a rule for a line that does NOT start with a given
> Literal. How do I do that? I try the following and my program just hang
> there:
>
> BodyLine = ~Literal("HTTP/1.1") + restOfLine
>
> Thanks,
> Khoa
>
Khoa -

pyparsing can be run in several modes, one of which tokenizes and extracts
data according to a given grammar, one of which scans for pattern matches,
and one which translates matched patterns into other patterns.  Its not
clear from your e-mail what you are trying to do.  There is nothing in your
statement that would cause Python to "just hang there", what else is your
program doing?

-- Paul



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

Reply via email to