1 (edited by Stefan 2007-06-05 13:08:15)

Topic: I want to delete the artist

Q:  I have ripped my Madonna Confessions On A Dancefloor CD.

Madonna - Hung up.mp3
Madonna - Get together.mp3
Madonna - Sorry.mp3
Madonna - Future lovers.mp3
Madonna - I love New York.mp3
Madonna - Let it will be.mp3

Now for my MP3-Player i didn't need the artist 'Madonna', how can i do this?






A:  There are more then one way.

The first would be to search for 'Madonna - '  and delete it:

EXAMPLE:          Madonna - Hung up.mp3
EXPRESSION:    %f("Madonna - ","")
RESULT:            Hung up.mp3

String replacement, How does it work ?

   The usage is near of the standard "replace":
   "( "str1", "str2", i1, i2, cs )"
   str1 : string to replace.
   str2 : replacement string.                                               If it is not specified, the string to replace is deleted. (That's what we use here)
   i1   : starting occurrence.                                               If negative, it is relative to the end of the string.
   i2   : number of replacements to do.                               If negative, all remaining occurrences are treated.
   cs   : number indicating if the search is case sensitive:     0 (zero) for no, any other value for yes.

   The last four parameters are optional.
   By default all occurrences are treated and the search is case insensitive.


##########################

Edit:
the simplest way  i have forgotten :-(
Here is it:

EXAMPLE:          Madonna - Hung up.mp3
EXPRESSION:    %f(11)
RESULT:            Hung up.mp3

EXPLANATION:
%f(11)  means skip the first ten chars

Madonna  - 
1234567890
 
and give me the name from the 11-th character till the end.

##########################





An another way (f. ex. if the artist is not always the same) would be to split the name by the '-' into parts:

EXAMPLE:         Madonna - Hung up.mp3
EXPRESSION:   %f[2]
RESULT:           Hung up.mp3

How does it work ?

   The "[]" modifier "splits" the associated string in array elements
   following the characters specified in "Options/Modifications" (or given as second parameter to "[]" .... for example %f[1,"-"] ).

   Each "substring" is reachable through its index.

   In this case, if '-' is one of the separators in "Options/Modifications":
   %f     gives "Madonna - Hung up.mp3"
   %f[1]  gives "Madonna"
   %f[2]  gives "Hung up.mp3"







Press the F1-key while you are in Siren to read more about.
Enjoy Siren,  No installation needed, unzip and run. Siren stores it settings into an ini file, not into the Registry.
------------------------------------------------------------------------------------------------------------

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

2

Re: I want to delete the artist

Thanks for all your efforts, Stefan!