Python script to optimize XML text

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Sep 25 16:40:20 EDT 2007


En Tue, 25 Sep 2007 11:43:03 -0300, Robert Dailey <rcdailey at gmail.com>  
escribi�:

> Thanks for everyone's input. I wanted to learn regular expressions,  
> however
> I'm finding them to be quite evil. I think I've learned that it's always  
> a
> good idea to make regex a very LAST resort. This is my opinion I'm
> developing on. In any case, I like the ideas mentioned here concerning  
> using
> the XML parser to do the job for me. Thanks again everyone, I think I'll  
> be
> going with the XML parser to do what I need.

So you get by yourself to the truth of this famous quote:

	Some people, when confronted with a problem, think
	“I know, I'll use regular expressions.”   Now they have two problems.
	(Jamie Zawinski)

-- 
Gabriel Genellina




More information about the Python-list mailing list