INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist Syntax  (Read 847 times)

davisford

  • World Citizen
  • ***
  • Posts: 116
Smartlist Syntax
« on: September 03, 2005, 04:33:21 pm »

Hi, I'm looking at the Help, but I see a couple of differences between helpfile/examples and what seems to really "work" with the program.

Wildcards / Regular Expressions are not what I am typically used to.  For example, * character..

In the helpfile, it lists the example like

[genre]=[alt*

"find genres starting with alt.."

This doesn't work.

If I try to create a smartlist to sort for artists that start with the letter 'A' or 'a' I try:

[artist]=[a*

and the smartlist is empty..but if I back the cursor up one time so it looks like this:

[artist]=[a

the smartlist is populated by all artists that start with the letter 'a' or 'A'

That's just a discrepancy betwen the helpfile and how the program behaves -- posting it for informational purposes.

I do have a real question: does MC smartlist syntax support the 'not' operator.  typically ! or !=.

For example if I want to create a smartlist of all artists that don't start with 'a', I would assume it might be like this:

[artist] != [a

..but this doesn't work.

Is there a way to do this?

Furthermore, what if I want to create a smartlist of all artists that don't start with 0-9 or a-z (e.g. they start with special characters like ! or $)

I could try the following:

-[artist]=[a" or -[artist]=[b"

but this doesn't work, and it is really tedious.  Is there an easier way that actually works?
Logged

davisford

  • World Citizen
  • ***
  • Posts: 116
Re: Smartlist Syntax
« Reply #1 on: September 03, 2005, 07:43:07 pm »

marko -- you the wizard..thx!
Logged
Pages: [1]   Go Up