On Apr 29, 11:27 pm, Raymond <[EMAIL PROTECTED]> wrote: > For some reason I'm unable to grok Python's string.replace() function.
line = "abc"
line = line.replace("a", "x")
print line
--output:--
xbc
line = "abc"
line = line.replace("[apq]", "x")
print line
--output:--
abc
Does the 5 character substring "[apq]" exist anywhere in the original
string?
--
http://mail.python.org/mailman/listinfo/python-list
