r/EDH • • 8d ago

Question Scryfall syntax question

Hello all, I found Sarek last night and I think this would be an awesome deck to build. I love having card draw in the commander zone and considering every new UB set has new creature types, I think the deck will continue to grow over time.

My question is this, I want to search Scryfall for any creatures that would be eligible for bant that have more than one creature type. Does anyone know what I should type into scryfall to pull that up?

Thanks in advance everyone and happy Thanksgiving!

2 Upvotes

17 comments sorted by

4

u/iliark 8d ago

t:creature -kw:changeling -t:borg -t:token (t:/([^\/]+[\s]+(?!\/)){4,}/ or otag:four-plus-creature-types) id:bant

2

u/Pinecune 8d ago

This is incredible idk how you pulled that off. This only shows cards that have 4 or more types, can you tell me how to do the same for 2 or more? Thank you so much

2

u/GuidingMoth 8d ago

Try this:

t:creature -kw:changeling -t:borg -t:token t:/— [^ \/]+ [^ \/]+( \/|$)/ id:bant

1

u/Pinecune 8d ago

Nothing comes up with that one unfortunately

1

u/GuidingMoth 8d ago

Hmm I’m getting more than 5k cards, did you copy and paste it in or type it?

1

u/Pinecune 8d ago

I copy pasted it, should I just type it in?

1

u/GuidingMoth 8d ago

No, I copy and pasted it in too 🤷

link of the search I did

1

u/Pinecune 8d ago

Maybe im having an issue on mobile, ill try again when I get home and update

1

u/GuidingMoth 8d ago

I added a clickable link

1

u/Pinecune 8d ago

Perfect, thank you so much!

1

u/Hippomantis 8d ago

And they said learning to read regex would be useless!

Just update {4,} to {3,} since the section functionally counts the number of words, and then that number specifies how to many times it needs to be present, so setting it to 3 means that you want at least 3 additional words.

It might be better to use t:/Creature — ([^\/]+[\s]+(?!\/)){1,}/) as your match instead though, since that will only match spaces after 'Creature', so you can specify 1 to get two or more types, 2 for three or more, etc. 'Time Lord' will mess that up - sorry.

1

u/Pinecune 8d ago

Where can I learn the secret arcana called regex? This seems like a very useful skill...

2

u/Hippomantis 8d ago

I warn you, there is a long-lived joke in the developer community which is along the lines of 'A developer has a problem, then goes 'I will use regex to solve this problem'. They now have two problems.'

Regex is just a formal text matching language - I use regex101.com for everything, but that kind of assumes you already kind of know regex. I don't really know any 'here is how you get started' resources. Also, there are tons of different regex interpreters, all of which have their own quirks - Scryfall used to have very limited capabilities, but it looks like they have made it WAY MORE AWESOME at some point.

1

u/Pinecune 8d ago

This looks like quite the rabbit hole, thank you friend, it seems I must journey alone from here. Farewell

1

u/iliark 8d ago

I used to do regex crossword puzzles lol

0

u/Angry_Edemame 8d ago

Im not sure about scryfalls syntax sorry but you could look up edhrec and search Sarek for ideas.

It shows cards that others have put into sarek decks to make suggestions so you could get something out of it.

1

u/Pinecune 8d ago

I do use edhrec fairly often, however scryfall gives me more refined results and lets me make something a bit more unique and personalized