Python and Regular Expressions
Neil Cerutti
neilc at norwich.edu
Sat Apr 10 12:35:51 EDT 2010
On 2010-04-10, Patrick Maupin <pmaupin at gmail.com> wrote:
> Trust me, I already knew that. But what you just wrote is a
> much more useful thing to tell the OP than "Every time someone
> tries to parse nested structures using regular expressions,
> Jamie Zawinski kills a puppy" which is what I was responding
> to. And right after regurgitating that inside joke, Chris
> Rebert then went on to say "Try using an *actual* parser, such
> as Pyparsing". Which is all well and good, except then the OP
> will download pyparsing, take a look, realize that it uses
> regexps under the hood, and possibly be very confused.
I don't agree with that. If a person is trying to ski using
pieces of wood that they carved themselves, I don't expect them
to be surprised that the skis they buy are made out of similar
materials.
--
Neil Cerutti
More information about the Python-list
mailing list