|Syntactic Confectionery Delight|
Re: regex renaming with existing filesby wjw (Priest)
|on Nov 03, 2014 at 22:07 UTC||Need Help??|
What you are attempting to do is not clear to me. The way you have this written, it is only going to find one folder called "folder1" and rename it as you have specified. To do multiple folders I would think that you would have to have a loop there somewhere.
Perhaps you want all folders below folder1 renamed? What you are asking for does not seem to line up with what you are coding.
I think perhaps what you might find helpful is to list out what exactly you have for folders, then write out what you expect to happen to each one. Then you will have an outline of what you have, what you want to have, and psudo-code to write against.
Then if you have questions, it will be clear what the question is about...
Hope that is helpful...
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact