Looking for a method to replace Acronyms with their proper syntax

Advanced Renamer forum
#1 : 05/02-14 16:42
David
David
Posts: 64
I was wondering if there is a simple way to change characters separated by spaces like so

O M A C to O.M.A.C.
S H I E L D to S.H.I.E.L.D.
etc.

As well as other similar patterns where acronyms are used. I'm thinking I would use a replace method but I don't know the syntax to write it in. It would be ideal if I could use one method to replace all such instances regardless of what the acronym is.

Thanks for sharing your knowledge.


05/02-14 16:42 - edited 05/02-14 16:43
#2 : 12/03-14 13:56
Stefan
Stefan
Posts: 274
Reply to #1:

You mean a rule like:

find one upper case followed by a space
and change to that upper case char but exchange the space by a period?


But you should provide complete file names first to get the right solution from us.



You can try Replace Method (http://www.advancedrenamer.com/user_guide/metho d_replace)

FIND: "([A-Z]) "
Replace: "$1."
[X]Case
[X]RegEx

but depending on your file names this may work well or not, or partly only.


12/03-14 13:56
#3 : 14/03-14 01:49
David
David
Posts: 64
Reply to #2:

That worked perfectly thank you very much!!!!!


14/03-14 01:49 - edited 14/03-14 01:55