INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can I remove a specified text using expression language?  (Read 2651 times)

Leito

  • Recent member
  • *
  • Posts: 16
Can I remove a specified text using expression language?
« on: February 27, 2013, 12:26:54 pm »

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?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Can I remove a specified text using expression language?
« Reply #1 on: February 27, 2013, 12:45:56 pm »

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.
Logged
The opinions I express represent my own folly.

Leito

  • Recent member
  • *
  • Posts: 16
Re: Can I remove a specified text using expression language?
« Reply #2 on: February 27, 2013, 03:27:24 pm »

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

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.
Logged
Pages: [1]   Go Up