Can't get the code to work, following code should replace what ever is after = and before "
user = "/silent test=de";
#!/usr/bin/python
import re
import fileinput
langids = ["de","uk","us","dk"]
for lang in langids:
for line in fileinput.FileInput("C:\Users\HS\Desktop\sps_r2850\Test.txt",inplace=1):
if re.match(".*user = \"[a-zA-Z/_= ]*\";.*", line):
line = ("user = \"/silent test=_%s\";\n" % lang)
print line,
re.sub