By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

pyparsing: how to negate a grammar

P: n/a

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

BodyLine = ~Literal("HTTP/1.1") + restOfLine


Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.