INTERACT FORUM

Please login or register.

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

Author Topic: if...contains? expression help (regex?)  (Read 1265 times)

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
if...contains? expression help (regex?)
« on: July 10, 2014, 04:19:52 pm »

i'm assuming this is a regex question, which i have yet to understand properly

i've tagged all my music with keywords, one of which is compilation, and one of which is collaboration

i'd like to use an expression to force any album CONTAINING the keyword "collaboration" to use primary artist as album artist, and likewise any album containing "compilation" to force (multiple artists) as the album artist.

looking through the expression wiki it appears i need a regex, but again i can't figure this one out.  part of writing these posts is talking myself through it so maybe i'll get it...but any hints are welcome!  thanks
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: if...contains? expression help (regex?)
« Reply #1 on: July 11, 2014, 09:21:28 am »

Code: [Select]
If(IsEqual([Album], collaboration, 8), /(Multiple Artists/), [Artist])
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: if...contains? expression help (regex?)
« Reply #2 on: July 11, 2014, 09:22:24 am »

I fixed the smiley. 8)
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: if...contains? expression help (regex?)
« Reply #3 on: July 11, 2014, 09:53:15 am »

LOL thanks guys, not sure why i was making it so hard.  works good!
Logged
Pages: [1]   Go Up