IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> How can I replace characters in the file name
kilohurtz
post Dec 19 2011, 12:38
Post #1


Member


Group: Full Members
Posts: 6
Joined: 20-February 11
Member No.: 13847
Mp3tag Version: 2.43



Hello Friends

Does anyone know how I can achieve the following

In the filename box I want to replace the following

"character_character to " " without the "
example taylor_dayne to taylor dayne

"character-character" to " " without the "
example tell-it-to-my-heart to tell it to my heart

"character_-_character" to " " without the "
example atfc_-_tell u to atfc - tell u

I would be very much abliged if someone could help me out

Merry Christmas

This post has been edited by kilohurtz: Dec 19 2011, 12:42
Go to the top of the page
 
+Quote Post
ohrenkino
post Dec 19 2011, 12:53
Post #2


Member


Group: Full Members
Posts: 4753
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.65



ZITAT(kilohurtz @ Dec 19 2011, 12:38) *
Hello Friends

Does anyone know how I can achieve the following

DId you have a look at the FAQs, http://forums.mp3tag.de/index.php?showtopic=980#entry4108 especially?

The example quotes "xyz" which should be the underscore in your example. And the single blank as replace string.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
kilohurtz
post Dec 19 2011, 14:07
Post #3


Member


Group: Full Members
Posts: 6
Joined: 20-February 11
Member No.: 13847
Mp3tag Version: 2.43



QUOTE (ohrenkino @ Dec 19 2011, 11:53) *
DId you have a look at the FAQs, http://forums.mp3tag.de/index.php?showtopic=980#entry4108 especially?

The example quotes "xyz" which should be the underscore in your example. And the single blank as replace string.


Thanks for the tip the only one I cant find is

"character-character" to "character - character" without the "
example atfc-tell-u to atfc - tell u

I dont want to above to affect any correct filesnames like artists - title only the ones that have artist-title

Thanks
Go to the top of the page
 
+Quote Post
ohrenkino
post Dec 19 2011, 14:35
Post #4


Member


Group: Full Members
Posts: 4753
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.65



ZITAT(kilohurtz @ Dec 19 2011, 14:07) *
Thanks for the tip the only one I cant find is

"character-character" to "character - character" without the "
example atfc-tell-u to atfc - tell u

I dont want to above to affect any correct filesnames like artists - title only the ones that have artist-title

Thanks

many routes lead to rome ...
As you want to have all hyphens with leading and trailing blanks I would do it in two steps:
replace all hyphens with blank-hyphen-blank
and as this will lead to double-blanks the next step would naturally be:
replace all double-blanks with a single blank.

This saves you from fiddling about with elaborate filters and regular expressions.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 18:28