Editing files

Kervin Goh gervin at pd.jaring.my
Thu Dec 21 07:58:59 EST 2000


I am not sure if this is what you wanted but I had to write a text to html
program for my assignment and I used regex object to match the pattern and
change it. I haven't done Python in a while so I'm a bit rusty but try
looking at the regex object and read up on Python regular expressions. Hope
this helps.

dv <lars at stea.nu> wrote in message
news:Bdd06.5591$K6.674078 at juliett.dax.net...
> I'm trying to automate some configuration tasks with python. Is it
possible
> to do a "search and replace" or specify where (which line) in a file
python
> will write?
>
> Thanks in advance
>
> Lars
>
>





More information about the Python-list mailing list