Daredevil, Fearless Fighter 

Legendary Creature — Human Hero
Whenever a source you control deals damage to you, Daredevil deals that much damage to target opponent.
Whenever Daredevil attacks, exile the top card of your library. Daredevil deals damage to you equal to that card's mana value. You may play it this turn.
click a line to search just that ability, click more to combine them
Cards that do something similar expected a card that isn't here?
Reports become test cases the matcher is graded against before an update ships. Delvefall isn't a chatbot guessing, it compares the printed rules text of every card with plain math, and examples like yours decide which differences should count.
Laelia, the Blade Reforged 99%
$0.30#1297
"Whenever this card attacks, exile the top card of your library. You may play that card this turn."
Nathan Drake, Treasure Hunter 94%
$4.72#14996
"Whenever this card attacks, exile the top card of each player's library. You may cast a spell from among those cards."
Etali, Primal Storm 88%
$0.43#260
"Whenever this card attacks, exile the top card of each player's library, then you may cast any number of spells from among those cards without paying their mana costs."
Caves of Chaos Adventurer 88%
$0.44#7374
"Whenever this creature attacks, exile the top card of your library. If you've completed a dungeon, you may play that card this turn without paying its mana cost. Otherwise, you may play that card this turn."
Synth Eradicator 87%
$0.32#8467
"Whenever this creature attacks, exile the top card of your library. You may get {E}{E} . If you don't, you may play that card this turn."
Tempered in Solitude 85%
$0.26#12038
"Whenever a creature you control attacks alone, exile the top card of your library. You may play that card this turn."
Bioplasm 83%
$0.30#25170
"Whenever this creature attacks, exile the top card of your library. If it's a creature card, this creature gets +X/+Y until end of turn, where X is the exiled creature card's power and Y is its toughness."
Neyali, Suns' Vanguard 83%
$2.23#3294
"Whenever one or more tokens you control attack a player, exile the top card of your library. During any turn you attacked with a token, you may play that card."
Cunning Rhetoric 83%
$4.04#2592
"Whenever an opponent attacks you and/or one or more planeswalkers you control, exile the top card of that player's library. You may play that card for as long as it remains exiled, and you may spend mana as though it were mana of any color to cast it."
Hans Eriksson 83%
$0.13#17784
"Whenever this card attacks, reveal the top card of your library. If it's a creature card, put it onto the battlefield tapped and attacking defending player or a planeswalker they control. Otherwise, put that card into your hand. When you put a creature card onto the battlefield this way, it fights this card."
Kami of Celebration 82%
$1.00#6590
"Whenever a modified creature you control attacks, exile the top card of your library. You may play that card this turn."
Sapling of Colfenor 82%
$7.08#6640
"Whenever this card attacks, reveal the top card of your library. If it's a creature card, you gain life equal to that card's toughness, lose life equal to its power, then put it into your hand."
Yennett, Cryptic Sovereign 82%
$0.35#10884
"Whenever this card attacks, reveal the top card of your library. You may cast it without paying its mana cost if its mana value is odd. If you don't cast it, draw a card."
Neriv, Crackling Vanguard 82%
$0.94#9575
"Whenever this card attacks, exile a number of cards from the top of your library equal to the number of differently named tokens you control. During any turn you attacked with a commander, you may play those cards."
Mezzio Mugger 81%
$0.32#12165
"Whenever this creature attacks, exile the top card of each player's library. You may play those cards this turn, and you may spend mana as though it were mana of any color to cast those spells."
Bomat Courier 81%
$0.22#12903
"Whenever this creature attacks, exile the top card of your library face down."
Connecting the Dots 81%
$0.28#9758
"Whenever a creature you control attacks, exile the top card of your library face down."
Tersa Lightshatter 80%
$1.21#6628
"Whenever this card attacks, if there are seven or more cards in your graveyard, exile a card at random from your graveyard. You may play that card this turn."
Chiss-Goria, Forge Tyrant 80%
$2.34#7485
"Whenever this card attacks, exile the top five cards of your library. You may cast an artifact spell from among them this turn. If you do, it has affinity for artifacts."