Re: [Tutor] String replace question
> Try print uri.replace('.', '\.') > and you'll find the replacement works fine. > > Or write the output to file, and look at the file. > > Python shows a representation on its prompt, and thus needs to escape the > backslash (by prepending another backslash). Otherwise you might think '\.'
[Tutor] String replace question
re is not a double slash before the period? Thanks for any help, Rod ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor