Add Space Between UPPER Latters

Advanced Renamer forum
#1 : 28/05-14 08:27
Nima
Nima
Posts: 1
I need to add spaces between UPPER latters, for example: "TheAdvanceRenamerIsAGoodSoftware" would become "The Advance Renamer Is A Good Software"
I have tried many RegEx Patterns, the one is workinf is:
search "([a-z])([A-Z])" replace "$1 $2" but still not enough.
I have checked this Pattern, working perfect in some RegEx testers but not in AR it shows ERROR, the Pattern is:
search "((?<=\p{Ll})\p{Lu})|((?!\A)\p{Lu}(?>\p{Ll}))" replace " $0"

Any help?


28/05-14 08:27
#2 : 28/05-14 21:39
Stefan
Stefan
Posts: 274
Reply to #1:


What is wrong with your first approach?
(the second uses not supported syntax anyway)


Just utilize two methods for the two different cases "AdvanceRenamer" and "AGood".


method0000=methodname:"replace"; active:"1";
replace:"([a-z])([A-Z])";
replacewith:"$1 $2";
casesensitive:"1";
regularexpressions:"1";
applyto:"name";
occurrence:"0";


method0001=methodname:"replace"; active:"1";
replace:"([A-Z])([A-Z])";
replacewith:"$1 $2";
casesensitive:"1";
regularexpressions:"1";
applyto:"name";
occurrence:"0";



.


28/05-14 21:39