INTERACT FORUM

More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: Flavio61 on October 24, 2013, 12:49:23 pm

Title: Regex to find the movement
Post by: Flavio61 on October 24, 2013, 12:49:23 pm
Hi all,
to better manage my library of classical music I created a new field called "movement" in which store the description of the composition's movements. I would like to do this automatically by taking the value from the "Name" field. All my tracks have the "Name" field formatted like this:

War Requiem, Op. 66: I. Eternal rest, a. Eternal rest

In particular, before the description of the movement there is always the sign ":". I'm sure thet with a Regex expression I can extract everything that comes after ":" and enter it in the "movement" field but I'm not able to build the expression.

Any help. Thank's.
Title: Re: Regex to find the movement
Post by: MrC on October 24, 2013, 02:12:15 pm
For this case, you can just use the simpler ListItem() (http://wiki.jriver.com/index.php/Expression_Language#ListItem):

   ListItem([Name], 1, :)

This will give you the stuff after the first : character.  Use instead:

   ListItem([Name], 1, :/ )

if you want to strip the leading space as well.