Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Replacement
#6
Thanks for the reminder on the raw string. Needed to avoid unnecessary escapes....

The main question at this point is if there are any particular limits to input for the data variable. I will be feeding it with readline, and OS module derived path and file names. And the output of re.sub is going to be used to change data in filenames, directories, as well as file data. I'm pretty sure it will be smooth sailing, but its always good to double check with a new language.

I've already run into some minor n00b fubars, and need a bit of firmer footing before I launch into file/io where a typo can (and has) wiped hundreds of files.
Reply


Messages In This Thread
Multiple Replacement - by millpond - Sep-09-2019, 05:10 AM
RE: Multiple Replacement - by buran - Sep-09-2019, 06:47 AM
RE: Multiple Replacement - by perfringo - Sep-09-2019, 07:24 AM
RE: Multiple Replacement - by millpond - Sep-09-2019, 08:11 AM
RE: Multiple Replacement - by DeaD_EyE - Sep-09-2019, 08:23 AM
RE: Multiple Replacement - by millpond - Sep-10-2019, 02:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Input Replacement palmtrees 7 7,320 Nov-07-2016, 06:55 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020