Thomas Guettler wrote: > you could use '^(.*?)=(.*)$' as regex to parse each line > group(1) is the variable name group(2) the value.
may I recommend: key, value = line.split("=", 1) </F> -- http://mail.python.org/mailman/listinfo/python-list
Thomas Guettler wrote: > you could use '^(.*?)=(.*)$' as regex to parse each line > group(1) is the variable name group(2) the value.
may I recommend: key, value = line.split("=", 1) </F> -- http://mail.python.org/mailman/listinfo/python-list