Magic Card Search Help, Tips, & Tricks
This website uses regular expressions to search for Magic Cards. Regular expressions (or regexs) are a flexible, powerful way to match text. To learn more about regexes check out this guide. All matching is case-insensitive.When searching, the text box is split apart on spaces into multiple patterns and returns only cards that match all patterns. fire elemental returns cards that have both 'fire' and 'elemental' in their text. To find cards that have either 'fire' or elemental use the pattern (fire|elemental).
If your pattern has a space in it use single or double quotes to keep to from getting split up. "fire elemental" finds cards with the exact string 'fire elemental' in them.
You can negate a regular expression by prefacing it with an exclamation point. !fire elemental finds cards that mention word 'elemental', but not 'fire'.
To search for a word only in the name of a card use something like ^name:.*fire. This can be used to search for cards with specific names, card types, rarity, cost, etc...
In expressions, ~ is expanded to the name of the card. To find legendary dragons with ETB triggers, try ^type.*legendary.*dragon 'when ~ enters'.
Due to technical reasons, you can't match against the price field, but there are some hidden fields that you can match against. 'CMC' has a card's converted mana cost, 'Color' is the cards color, 'CID' is its color identity (used for the commander format), 'Legality' is its status in each format, 'Reserved' is its reserved list status, and 'Timeshifted' is if the card has ever been printed in a timeshifted frame. '^cmc: *10$' ^cid:.*g searches for 10 mana cards with green in their color identity.
To find cards to go in your white and black commander deck try searching for something like '^cid: *[wb]*$' 'legal in commander'. This will match cards with white, black, white-black, and colorless color identities.
To search for a word only in the rules text but not in other fields, use a pattern like '^(rules text:)? .*cipher'. This looks for the word 'cipher' when it's on a line that started with 'rules text:' or a space (only rules text lines can start with a space).
These patterns can be combined into arbitrarily complex searches like: ^type.*(merfolk|elf) !type.*legendary '(\bother (elf|merfolk)|tap.*untapped)' cmc.*[2-4]. This searches for non-legendary merfolk and elves, that cost between 2 and 4 mana, and mention 'other merfolk', 'other elf', or tapping untapped things.
The enter selects and deselects the search field. This is really useful so that you can search, press enter and start scrolling through the results with the arrow keys or page up/page down. When you want to refine your search, press enter and start typing to change the search parameters. If you are typing in a search and change your mind and want to start over, press enter twice to highlight the whole field and start typing to replace it all with a new query.
You can get a copy/pasteable card list from the Stats tab for easy pasting into TCGplayer or other purchase website.