deleting texts between patterns

bruno at modulix onurb at xiludom.gro
Fri May 12 07:49:02 EDT 2006


Fredrik Lundh wrote:
(snip)
> to print to a file instead of stdout, just replace the print line with a f.write call.
> 

Or redirect stdout to a file when calling the program !-)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list