How could I filter cards ranging from 1000 to 2000 in a deck

Hi
I am trying to create a filtered deck containing cards ranging from 1000 to 2000 in a deck without any success.
Could you please help me with that?
thank you

What do you mean “cards ranging from 1000 to 2000”. Do your cards have some field with a number? Or do you mean a position in a new cards queue?

2 Likes

thank you
And I forgot to mention that yes, there is a sort field in the deck sorting cards in ascending order, which ranges from 1 to 5000. I want to create a filtered deck only including cards ranging from 1000 to 2000.

You can use regular expressions for that. If your field is named “my_field” then the filter criteria can look like this: my_field:re:1\d{3}$
It scans “my_field” for values, that start with “1” followed by 3 digits.
It may look like some alien code if you are not familiar with working with regular expressions :wink:
Here is a manual section about using regular expressions: Searching - Anki Manual

3 Likes

Thank you,
But I have failed to achive what I need. Nothing shows with the filter.
Here is a screen shot showing a part of the deck.


And I followed your advice to add a filter like
“deck:Essential Spanish Vocabulary Top 5000” Sort Field:re:1\d{3}$.
But nothing shows up.
Your assistane is much appreciated.

Click on one of the cards and show what is being shown on the list of the card fields. I suspect that Sort Field is not the real name of the card field.
Moreover, if the field name has a space you need to put the whole criterium in double quotes, like this: "deck:Essential Spanish Vocabulary Top 5000" "Sort Field:re:1\d{3}$"

3 Likes

@szalejot Yes, you are right. Just realized that the real name of the field is not Sort Field.Now the problem sovled.
Thank you very much!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.