INTERACT FORUM

Please login or register.

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

Author Topic: Finding semicolons in Artist names  (Read 3311 times)

wburkett

  • World Citizen
  • ***
  • Posts: 109
Finding semicolons in Artist names
« on: January 30, 2016, 12:46:33 pm »

I'm trying to create a smartlist that finds Artist names containing semicolons.  Given the special nature of semicolons in JMRC's rule/expression language, I am having a difficult time doing this.  I've tried a literal ";", an escape /; and just the plain old ;

What do I need to do?

Thx - B
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72379
  • Where did I put my teeth?
Re: Finding semicolons in Artist names
« Reply #1 on: January 30, 2016, 02:31:41 pm »

The escape should be \ and not /.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Finding semicolons in Artist names
« Reply #2 on: January 30, 2016, 05:23:32 pm »

The escape should be \ and not /.

That's not right, Jim. The escape character is a forward-slash (/), but it doesn't seem to work in the Search Language.

But this does:
Code: [Select]
[=IsEqual([Artist], /;, 8)]=1
Logged
"Some cultures are defined by their relationship to cheese."

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

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Finding semicolons in Artist names
« Reply #3 on: January 30, 2016, 05:55:20 pm »

I can't find any search (other than the expression by Glynor) that searches for the semi-colon.  I assumed just escaping would make it start working, but it doesn't seem to.

I'll take a look at it Monday and see if anything good comes out the other side.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Finding semicolons in Artist names
« Reply #4 on: January 30, 2016, 06:57:30 pm »

More on this.

Searching for a semi-colon in a field that isn't a list-type field works great.

For example:
I set the comment of one file to "a;b" and search for:
[Media Type]=[Audio] [Comment]=";"

And that works great!

So I think the problem is that the semi-colon is the field delimiter in the Artist field, so it's really saying "Here's a list of artists!"

Not sure how to get around that because a semi-colon in the artist field is always going to be a separator.
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Finding semicolons in Artist names
« Reply #5 on: January 30, 2016, 07:04:21 pm »

More on this.

Searching for a semi-colon in a field that isn't a list-type field works great.

I was going to test that with [Description] or something after your initial comment, but you beat me to it. That makes sense. [Artist] is coming "in" essentially as a "list type" and not as a string, so the semicolons aren't "there".

The IsEqual() expression works though, so I don't think it is a big deal.
Logged
"Some cultures are defined by their relationship to cheese."

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

wburkett

  • World Citizen
  • ***
  • Posts: 109
Re: Finding semicolons in Artist names
« Reply #6 on: January 30, 2016, 10:48:24 pm »

Thanks, guys - glynor's expression does, in fact, work for me, so the problem is solved.   There is no WAY I would have figured that out for myself (thanks, glynor).  Though I am surprised that finding a semicolon is that hard to do (while acknowledging that semicolons are special in certain situations.)

Bill
Logged
Pages: [1]   Go Up