VBScript's rename object has a Global flag which does the same thing (in this context). The example script sets it so if you've based yours on that then you should be able to simply remove the #
re.Global = True ' All matches will be replaced, not just the first match.
I tried as you said and it doesn't work. I added the line to your script like this
re.Global = True ' All matches will be replaced, not just the first match.
re.Pattern = "(.*)\.(.*)([0-9])([0-9])([0-9])([0-9])(.*)"
strNameOnly = re.Replace(strNameOnly, "$1 $2$3$4$5$6$7")
I have to learn VBScript. I want to remove only the dots before the date. Is it that simple with string find & replace functions? For the moment RegEx is more simple for me.
The # in Opus tells it to keep applying the regex until the string stops changing. It'd be like a loop in VBScript.
Are you just trying to avoid removing the dot that's for the file extension? The example script handles that another way by removing the extension and then putting it back again after applying the other changes. Much easier as then you can just replace all dots with spaces etc. without worrying about the extension at all.
Yes. I just upgraded from WiinXP to Win7, and after doing a restore (in DOpus), my custom file renaming templates reappeared. (Good thing, too, because in my hurry to upgrade, I forgot to manually save DOpus' configuration directory like I usually do, you know, just in case. )
Wait. Hold that thought. I also used Windows Settings Transfer wizard thingy which restored my application data, so I can't save for sure. Never mind. Sorry.