Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: Vald on October 08, 2018, 05:35:19 PM

Title: advanced filters
Post by: Vald on October 08, 2018, 05:35:19 PM
Good evening,

I've been testing and searching for answers but cannot find any.  What do the brackets and slashes do in filters?

What I'm trying to do is filter out, say, anything that has "Euro" in the title, but only within brackets.  So, for example, it should filter out (Euro, Kor) or (Jap, Euro, Kor) but not "European Games"

Those are just made-up examples, of course.

I can't find any information on filters except some samples, but they don't explain how they work.

Is there a more in-depth guide somewhere?
Title: Re: advanced filters
Post by: keilmillerjr on October 08, 2018, 05:43:44 PM

Shows example similar to your situation. You can escape a parentheses with a backslash. I don’t think regex is supported. If this is the case, I see two options. Don’t include a parenthesis. Or explicitly come up with every language combo you see.
Title: Re: advanced filters
Post by: Vald on October 08, 2018, 06:38:04 PM
Thanks for the reply. I've used those filters but there's no explanation to them.  So will parentheses be ignored in filters without the backslash?  There's no pattern matching at all?

I'd suspected this but it's time-consuming to test and I can only get a few minutes here and there to work on this.

Thanks again
Title: Re: advanced filters
Post by: progets on October 08, 2018, 06:47:34 PM
This should work.

Code: [Select]
filter               Euro
rule                 Name contains \(*Euro*\)

If you look at the "No Clones" rule in the wiki link mentioned above you can see that the "*" is used. I did minimal testing and it seems to work. This should eliminate the need to remove "(" and ")" and also needing to specify all the various possible combinations in of (Euro) in your rule(s). Cleaner is better.