## Filter Dialog

You can filter cards in the view by opening filter. Filter action is on view toolbar and also available from the view menu. You can select one of more criteria from the filters. Filter dialog has three page: Basic Filter, Sets Filter and Location filter (last one only available from My Cards view).

### Basic Filter

Basic filter has several groups such as Color, Type, Rarity etc. Items that belong to the same group (such as Type) would be selected using logical OR. Item that belong to different groups would be selected using logical AND.

Color group has two columns - basic colors, and color types and modifiers. Basic colors selected using OR, unless you check "And". If you check "Only" unchecked colors would be excluded. For example to select Red and Blue Hybrid cards you need to check Red, Blue, Hybrid and Only (If you don't select Only you will get all hybrids with Red or Blue, for example Blue/White).

Another example: if you select color Blue and White and Type Creature and Enchantment, you will get all creates and all enchantments that are Blue or White (including multicolored).

Text search fields would split you text by words and search text using AND for all worlds you enter in the same line, disregarding order. Text search field provide content assist, i.e. they would show possible word you want to enter while you typing.

To search for symbols in Text field (such as mana and tap symbols) use the following table:

Symbol | Search as
--- | ---
Red mana | {R}
Black mana | {B}
Blue mana | {U}
Green mana | {G}
White mana | {W}
Tap | {T}
Untap | {Q}
1 mana | {1} also {2},{3},...,{12}
Black or Green mana | {B/G} also {W/B},{U/R},...
Phyrexian Red | {RP} also {WP},{BP},...

You can also search quoted text (will be searched as is including spaces), for example "until end of turn" in double quotes. If you add "-" right before the word it would mean "not" for example "life -loose", means search for text "life" exclude ones with "loose" in it. By default text search is case insensitive, if you need case sensitive search or more advanced search you can use regular expressions. Regular expressions are recognised in text as m/expression/, for example m/Flying/ will search with Flying starting with capital F. Regular expressions are very powerful, google java regular expression for help on how to write them. If you put ability in square brackets it will search for minded ability like [draw] will search for cards which allows you to draw more cards

- Example 1: Select all Green creatures with flying - Select Green in Color, Create in Type, and type `flying` in Text field
- Example 2: Select Artifact Creatures with cost 0 or 1 - Select Artifact in Type, type `Creature` in Type field, select <= 1 in "Converted CC" field.
- Example 3: Select Creatures that can tap for mana - Select "Creature" in Type group, type `{T} mana pool` in Text field.
- Example 4: Look for only Flying creatures - Type `m/Flying/` in the text field.
- Example 5: Look for creates with no abilities - Select "Creature" in Type group, Type `m/^$/` in the text field.
- Example 6: Find cards with "destroy all" or "return all" in text - Enter `m/([Dd]estroy|[Rr]eturn) all/` in text search field
- Example 7: Find cards with ability to pull other cards from your graveyard - Type `m/return .*from your graveyard/` in text field

### Set Filter

Set filter allows to select specific set in which cards should be shown.

### Location Filter

Location filter allow to select set of decks/collection that would be shown in My Cards view.

### Abilities Filter

Abilities filter - is a filter on a card text (oracle version), but allows more control. In dialog fields you can use simple word search, quoted text or regular expressions, see Text search in Basic Filter help.

### Save/Load Filter

This page allows to save existing filter and reuse later, which is handy if you doing same query over and over again. For example you can select sets which makes current Standard legality and save as "sandard". Or you select all collection which you own in Location filter (compare to some other ones, like wishlist) and you can quickly load it later to see only own cards. Or you can create an ability filter and save as "ability" keyword filter.

Press "Save As..." to save current filter (select an exiting filter to override it).

Select a filter and press "Load" to load a filter.

Select a filter and press "Remove" to delete a filter.

Filter files are saved in workspace/.metadata/.plugins/com.reflexit.magiccards.core/filters directory if you care.