You are not logged in.
Pages: 1
I have files with names in their names, like "Joe Blow Sam Hill Tom Jones", and I would like to change them to "Joe Blow, Sam Hill, Tom Jones". The number of names in each file name is not the same. Can this be done?
Offline
Hi Tom,
...Can this be done?
Yes, if you can provide a common pattern how to find the position to insert the comma.
Or perhaps, if you can provide a list of names to find and then we add trailing comma after each.
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
For example, considering your example, you can insert a comma after every 2 consecutive capitalized words.
Using the following Regular Expressions rule:
Replace expression "([A-Z]\w+)(\s+)([A-Z]\w+)\b(.)" with "$1$2$3,$4" (case sensitive) (skip extension)
Input:
Joe Blow Sam Hill Tom Jones
Output:
Joe Blow, Sam Hill, Tom Jones
Offline
For example, considering your example, you can insert a comma after every 2 consecutive capitalized words.
Using the following Regular Expressions rule:
Replace expression "([A-Z]\w+)(\s+)([A-Z]\w+)\b(.)" with "$1$2$3,$4" (case sensitive) (skip extension)
Input:
Joe Blow Sam Hill Tom Jones
Output:
Joe Blow, Sam Hill, Tom Jones
Thanks, that did it! Regexes give me a headache, they look like what happens when my cat walks on the keyboard!
Offline
Regexes give me a headache, they look like what happens when my cat walks on the keyboard!
Offline
Pages: 1