I have looked to find some documentation on the following but been unsuccesful as of yet, thanks for any help.
I am very new to Directory Opus and still learning but there is a task I want it to be able to perform. I use a downloading program which uses external (XML) files to know what to download and the name of these files also set the name of the folder the files are downloaded into (this isn't that important). The problem is that all these files have a prefix and a special ID number as part of this, furthmore all the places where there would be a space in the folder name there is an underscore.
So I would have a folder downloaded in the following format:
msgid_7777777_Word1_Word2
I need this to become:
Word1 Word2
The number is always a 7 digit one if that's needed info, and I know how to replace the underscores with spaces and the msgid_ bit with just nothing. The underlining problem is that I cannot get the numbers removed as they are different all every folder. Now, I don't know what the best way to do it this are but I see two possible methods:
- The first 14 characters (taking me up to the first word) are simply trimmed off.
- The use of wildcards, so I could tell it to replace msgid_???????_ with nothing. I kind of get the impression this is possible but I havn't figured out how.
If either of the following (or you can think of another way) can be done please tell me as this would be vastly useful to me an a few people I know. If both are possible then please explain both as I would rather learn now then have to spend time confused in the folder.
Thanks for any help anyone can offer,
Greg