Re: [Tutor] Multiple regex replacements, lists and for.

2010-10-12 Thread Evert Rol
> I'm new to python and inexperienced in programming but I'm trying hard. > I have a shell script that I'm converting over to python. > Part of the script replaces some lines of text. > I can do this in python, and get the output I want, but so far only using sed. > Here's an example script: > > i

[Tutor] Multiple regex replacements, lists and for.

2010-10-11 Thread Will Geary
Hello all, I'm new to python and inexperienced in programming but I'm trying hard. I have a shell script that I'm converting over to python. Part of the script replaces some lines of text. I can do this in python, and get the output I want, but so far only using sed. Here's an example script: imp