#1 : 21/01-12 09:46 Luke52
Posts: 5
|
I have thousands of mp3 files with names like Help THE BEATLES.mp3 , The best TINA TURNER.mp3 and so on.
I like to change them all to Help - THE BEATLES.mp3 , The best - TINA TURNER.mp3 and so on. I tried different methods but none of them seems to work , does anybody have a solution for this problem ? Thanks LUKE 52 |
#2 : 21/01-12 13:31 erwin ruff
Posts: 21
|
Reply to #1:
do the mp3s have ID3 Tags? cause if they dont, its quite hard to find one rename method to rename all mp3s right |
#3 : 22/01-12 11:13 Luke52
Posts: 5
|
Reply to #2:
No,ther are no mp3tags on them,i was thinking on a sort of algorythem like this " if ther are more than 2 capital letters in sequence then add space-space in front of that word" it will be tuff i think . I like to thank you anyway for the responce ! LUKE52 |
#4 : 22/01-12 18:18 erwin ruff
Posts: 21
|
Reply to #3:
Replace method Case sensitive On use regular expressions On (.[-A-Za-z0-9\W]) (.[A-Z]{2}) \1 - \2 works for me ^^ but i dont know if its the best method it take only 5 minutes to make. and only tested on the two file names so there will be a few bugs. if there are artists name with a number on it it wont work or just test this (.[-A-Za-z0-9\W]) (.[A-Z0-9]{2}) you can also change the output filename to "TINA TURNER - The best" by \2 - \1 have fun |
#5 : 30/01-12 17:25 Luke52
Posts: 5
|
Reply to #4:
Thanks for the responce,but it stil don't work,now i get filenames like this The best - TINA - TURNER.mp3 it should be The best - TINA TURNER.mp3 so there is one or more space - space to many ,if the name of the artist counts 4 words then there are 4 times space - space .(e.g. Bad moon rising - THE - CREEDENCE - CLEARWATER - REVIVAL.mp3 I tried several methods but none of them seems to give me the good result. Maybe you have some more solutions? Thanks anyway Luke52 |
#6 : 30/01-12 21:30 Steve Whitbread
Posts: 21
|
Reply to #5:
Erwin's method needs very little modification. Try (.*[a-z0-9\W]) (.[A-Z]{2}) \1 - \2 This works on your CREEDENCE and other examples. I'm too much of a RegEx novice to be able to suggest anything better |
#7 : 01/02-12 11:33 Luke52
Posts: 5
|
Reply to #6:
Thanks for the responce STEVEN,this works for 80% but there is still one problem, Bad moon rising CREDENCE CLEARWATER REVIVAL.mp3 becomes Badmoonrising - CREEDENCE CLEARWATER REVIVAL.mp3 So you see the spaces in the titlefield are gone,can you think of a solution? LUKE52 |
#8 : 01/02-12 12:39 erwin ruff
Posts: 21
|
Reply to #7:
the method from steve works on Bad moon rising THE CREEDENCE CLEARWATER REVIVAL.mp3 Bad moon rising - THE CREEDENCE CLEARWATER REVIVAL.mp3 maybe you have another replace method in the list? |
#9 : 04/02-12 16:11 Steve Whitbread
Posts: 21
|
Reply to #7:
Luke, I wasn't able to replicate your problem. As Erwin says, the expression does seem to work with the example you give, so perhaps there is something else going on. Cut and paste the expression and make sure there aren't any unwanted extra spaces in the replace line. As an alternative, (.*[a-z0-9]\W)(.[A-Z1-9]) also works. The 'greedy' .* swallows up all the beginning lower case part of the name (and makes it with the trailing space)part of \1) without needing to worry about where the continuous capitals start. {So, I've learnt something at least} btw (.*[A-Z1-9]\W)(.[a-z0-9]{2}) seems to work OK (using \1- \2) if the CAPITALIZED and Normal Case sections are reversed. Good luck, Steve |
#10 : 09/02-12 17:41 Luke52
Posts: 5
|
Reply to #9:
Thanks Steve , it works for 75% , the rest i will do by hand,there are only 600 files left so it's not so hard to do. Greatings Luke 52 |