#1 : 06/02-19 18:06 Jhonny
Posts: 2
|
An example of what he wanted to do.
Before: ResidentEvilNemesis After: Resident.Evil.Nemesis It would be possible? Could someone help me? And thanks for the wonderful program, it saves precious time. |
#2 : 06/02-19 19:28 David Lee
Posts: 1125
|
Reply to #1:
I know how to add a character before each upper case letter using a Regular Expression - perhaps someone else can suggest how to prevent that putting a dot at the beginning of the filename, to avoid having to remove it in a second step. However - using two methods... 1: Replace ([A-Z]) with .\1 Occurrence: All Case sensitive Use regular expressions 2: Remove Remove count: 1 Starting at: 1 |
#3 : 07/02-19 10:54 David Lee
Posts: 1125
|
Reply to #2:
This has been nagging at me - I finally found the answer in https://en.wikipedia.org/wiki/Perl_Compatible_Re gular_Expressions \K will reset the start of the current whole match - so match the first character and then reset. So - using only a single Replace method... Replace .\K([A-Z]) with .\1 Occurrence: All Case sensitive Use regular expressions Note that in the match string "." signifies 'match any character' but in the replace string it represents itself - ie the literal character "." |
#4 : 07/02-19 13:12 Jhonny
Posts: 2
|
Reply to #3:
David Lee, thanks for the help, could you create a ".zen" and make it available for me? I understand little English and I am having difficulty understanding the explanation. (I'm using google translator) ======== Update, I managed to understand Only then did I have to add a blank "remove pattern" to fade away the spaces that remained. Thank you for your help! |
#5 : 07/02-19 14:36 David Lee
Posts: 1125
|
Reply to #4:
You should not need a "Remove pattern" method. The "Replace" method should not be leaving any spaces if you have entered it correctly. Text to be replaced: ".\K([A-Z])" Replace with: ".\1" Occurrence: "All" Case sensitive: "√" Use regular expressions: "√" Apply to: "Name" I do not understand what you mean by 'create a ".zen" ' Your profile says you are from Brasil - is your language Portuguese? If so have a look at: https://pt.wikipedia.org/wiki/Express%C3%A3o_reg ular |