INTERACT FORUM

Please login or register.

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

Author Topic: Expression To Find Data  (Read 948 times)

T2Mac

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 55
  • Change this by choosing profile
Expression To Find Data
« on: April 15, 2007, 02:45:14 pm »

I have a lot of mix albums which can contain various versions of the same track. I currently append the version to the track name inside square brackets (Name [Version]).

I now want to store the version separately so I created a ‘version’ library field. To automate the process of moving the version from the name field, I wondered if there was an expression I could use which would retrieve any data from between the square brackets.

Any help would be appreciated.

Ian
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9140
Re: Expression To Find Data
« Reply #1 on: April 15, 2007, 03:22:45 pm »

do you have the name of the track in the filename itself?

if so, you can use the "Fill properties from filename" tool to do this.

Assuming a filename of [track #] - [artist] - [album] - [name].mp3
you would use a fill from template like so: [] - [] - [] - [name] [[version]] (This assumes all files follow the same naming convention. You may need to juggle that to fit the template you have used.)

and that would move the data in square brackets into the version field, and at the same time, remove it from the name field.
name=/[ will list all files with square brackets in the name field.

-marko.

T2Mac

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 55
  • Change this by choosing profile
Re: Expression To Find Data
« Reply #2 on: April 15, 2007, 04:05:03 pm »

Wow that was simple enough, though I would never of thought of that in a month of Sundays.

Cheers Marko.

Ian
Logged
Pages: [1]   Go Up