Adding Space between Lowercase and Uppercase

Advanced Renamer forum
#1 : 14/09-17 17:42
Jagdev Singh
Jagdev Singh
Posts: 7
I have got some preset files:

BA CrushedBass
BA DarkRollBass
BA DeepPadSine
BA DrivenBrassBass

Final Result I want:

BA Crushed Bass
BA Dark Roll Bass
BA Deep Pad Sine
BA Driven Brass Bass

I've been trying the expressions and the result i'm getting adds space between BA also and between otherwords which already have space between them.


14/09-17 17:42
#2 : 15/09-17 05:28
D.Ach
D.Ach
Posts: 35
delete my post?


15/09-17 05:28 - edited 15/09-17 05:30
#3 : 15/09-17 05:32
Danny G
Danny G
Posts: 6
Reply to #1:

1. Copy and paste the following into Notepad and save as RenameBA.aren
(Note: make sure it doesn't end in .txt, it must end in .aren)
2. Double-click on this new file and it will open as a preset in Advanced Renamer.
3. You can save to your presets folder if required for future work. Add your files from there.
4. If you have filenames that don't match your examples, you may also need to add a Replace: Text to be replaced: (two spaces) Replace with: (one space).

[header]
type=preset
application=Advanced Renamer 3.78
application_version=3780100
batchmode=rename

[namecollision]
separator=_
pattern=
rule=fail

[methods]
method0000=methodname:"replace"; active:"1"; replace:"([A-Z])"; replacewith:" \1"; casesensitive:"1"; regularexpressions:"1"; applyto:"name"; occurrence:"0";
method0001=methodname:"replace"; active:"1"; replace:"B A "; replacewith:"BA"; casesensitive:"1"; regularexpressions:"1"; applyto:"name"; occurrence:"0";
method0002=methodname:"replace"; active:"1"; replace:" "; casesensitive:"0"; regularexpressions:"0"; applyto:"name"; occurrence:"1";



15/09-17 05:32 - edited 15/09-17 05:36
#4 : 28/10-17 11:00
Jagdev Singh
Jagdev Singh
Posts: 7
Reply to #3:

Thanks a lot


28/10-17 11:00
#5 : 07/12-17 20:14
Jim
Jim
Posts: 1
Reply to #3:
I'd like to try this method on files I need to rename.

From your post:.

application=Advanced Renamer 3.78
application_version=3780100

I think I need to change to:

application=Advanced Renamer 3.80
application_version=? ? ? ? ? ? ?
Where can I find this info?

Jr8040

I'm assuming that once I close renamer, I can reopen it in the default mode by opening a different preset file? From AdvancedRenamer\BatchMethods\? Named?
Or do I just reload from the Aren.exe file to return to normal?
My Question will probably tell you that I am new to the concepts of batch file renaming...

How do I add this file to the presets folder?


07/12-17 20:14
#6 : 07/12-17 20:45
Stefan
Stefan
Posts: 274
Reply to #5:
>>>I think I need to change to:

No need to do that.
Just take a look at the [methods]-block and add the wanted Methods yourself.


[methods]
method0000=methodname:"replace"; active:"1"; replace:"([A-Z])"; replacewith:" \1"; casesensitive:"1"; regularexpressions:"1"; applyto:"name"; occurrence:"0";

https://www.advancedrenamer.com/user_guide/metho d_replace
replace: ([A-Z])
replacewith:     \1
[x] casesensitive
[x] regularexpressions


method0001=methodname:"replace"; active:"1"; replace:"B    A    "; replacewith:"BA"; casesensitive:"1"; regularexpressions:"1"; applyto:"name"; occurrence:"0";

https://www.advancedrenamer.com/user_guide/metho d_replace
replace: B A
replacewith: BA
[x] casesensitive
[x] regularexpressions


method0002=methodname:"replace"; active:"1"; replace:" "; casesensitive:"0"; regularexpressions:"0"; applyto:"name"; occurrence:"1";

https://www.advancedrenamer.com/user_guide/metho d_replace
replace: ' '
replacewith:
[_] casesensitive
[_] regularexpressions


- - -

If you still want to use that above posted preset, just save ANY method as preset with the new ARen version
and then take a look inside that saved file to find answers to your 'application_version' question.

- - -

But that solution is very related to the question in the very first post,
....so you may better create a new topic with some 'Current name/Wanted name' examples of yourself.

There may be also a better solution than the above one,.... I will have to take a deeper look.



  


07/12-17 20:45 - edited 07/12-17 20:49