More > Media Jukebox

Can I remove a specified text using expression language?

(1/1)

Leito:
I have several tracks that have a [Name] equal to "Artist - Title" ("Artist" is not the same on all tracks). I would like to remove the "Artist - " part of the [Name]. Is there any way I could do it using expression language?

MrC:
You can update Name anywhere you edit a tag by entering:

  =listitem([Name], 1, / -/ )

Add the expression to an expression column to test it first if you want.

Leito:

--- Quote from: MrC on February 27, 2013, 12:45:56 pm ---=listitem([Name], 1, / -/ )

--- End quote ---

Thanks, works really great! :)

I didn't think to look into the List Manipulation section of the wiki, that's good to know that those functions works also with simple fields.

Navigation

[0] Message Index

Go to full version