INTERACT FORUM

Please login or register.

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

Author Topic: Naming an expression - SOLVED  (Read 1526 times)

DHF

  • Junior Woodchuck
  • **
  • Posts: 74
Naming an expression - SOLVED
« on: February 06, 2016, 01:15:56 pm »

I am going through renaming the library - and as it has grown over the years, I am breaking up the music directory into FLAC\(Artist Letter)\Album Artist (auto)\Album.

I am using the regex function (per previous posts!  Thanks Glynor) to get the artist letter as follows:

Regex([Album Artist (auto)], /#^(?:(?:the|an|a) +)?(.)#/,-1)if(Compare(1[R1], >=, 10), 0 - 9, [R1])

All works fine - but I saw that there was a way to name the regex expression "Artist Letter" and insert that as a field rather than the expression itself.

In other words - how do you name an expression?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Naming an expression
« Reply #1 on: February 06, 2016, 01:19:42 pm »

You probably want to make a new Library Field.  Here's some info from the wiki about that:

http://wiki.jriver.com/index.php/Library_Fields#Field_Characteristics

Just use Add New Field and make it's value "Calculated Data".  Insert the expression in the calculated data area.  I actually have exactly this same field, using Glynor's expression.  I called mine "Artist Letters"; again, as per Glynor's suggestion.

Good luck.

Brian.
Logged

DHF

  • Junior Woodchuck
  • **
  • Posts: 74
Re: Naming an expression
« Reply #2 on: February 06, 2016, 01:22:28 pm »

 :D :D :D :D :D :D

YESSSS!!

Thanks
Logged
Pages: [1]   Go Up