Newbie question: string replace

usgog at usgog at
Tue Oct 25 18:37:09 CEST 2005

I have a config file with the following contents:
service A = {
  params {
    dir = "c:\test",
    username = "test",
    password = "test"

I want to find username and replace the value with another value. I
don't know what the username value in advance though. How to do it in

More information about the Python-list mailing list