Add Spaces in between hyphen

Advanced Renamer forum
#1 : 14/01-17 20:27
Lee Jacks
Lee Jacks
Posts: 3
Change

Artist-Song
to
Artist - Song

Artist and Song has many variables

Thanks


14/01-17 20:27 - edited 14/01-17 20:41
#2 : 14/01-17 22:08
G. Lambany
G. Lambany
Posts: 187
Reply to #1:
did you even try the replace method?
like replace the dash with space, dash, space?


14/01-17 22:08
#3 : 14/01-17 22:37
Lee Jacks
Lee Jacks
Posts: 3
Reply to #2:
I have other files in same folder with:
Artist - Song
So I'm guessing that would result in:
Artist space,space - space,space Song

I suppose I could then do the replace as you mentioned:
replace
space,space,dash,space,space
with
space,dash,space

My head hurts :-)


14/01-17 22:37 - edited 14/01-17 22:39
#4 : 14/01-17 22:44
G. Lambany
G. Lambany
Posts: 187
Reply to #3:
if you want a "smarter" replace, you can use it with regular expression:

text to be replaced: \s*\-\s*
replace with: space, dash, space (the actual characters you want)
use regular expressions: checked

this will accept any amount (including none) of spaces before the dash and after


14/01-17 22:44
#5 : 14/01-17 23:01
Lee Jacks
Lee Jacks
Posts: 3
Reply to #4:
Worked perfectly - many many thanks

I originally tried with *-*

I was almost there.


14/01-17 23:01