whenever.reg.bak

Whenever 
    ( ## Actor
        ::subtags(whenever.actor ;; |) ## Comment for BetterReg testing
    )
        ::subtags(whenever.action ;; |) ## Comment
    )
    ( (  ## Target of the action
        a card|a land card
        |another land|a Mountain|a Swamp|a Spirit or Arcane spell|THIS_CARD|an instant or sorcery spell
        |a (white|blue|black|red|green) spell|another card
        |(this|a|an)( (historic|artifact|enchantment))? spell
        |a spell or ability|a card|no Swamps|an Aura
        |(your second|a multicolored|a Druid|an instant|a legendary|a Giant|a planeswalker) spell
        |(a Kithkin|a silver-bordered|a blue or black|an Aura) spell
        |a Clue|you|a player|a land|a spell or ability|your hand|a permanent|another permanent
        |no other artifacts|an opponent|an opponent\'s graveyard
        |one or more targets|flying|a white\, blue\, black\, or red spell|a blue\, black\, or red spell
    ))? 
    ( ( ## describes further or is too complex for current algo
        for mana|from your graveyard|no permanents other than THIS_CARD and have no cards in hand
        |for the first time each turn|during an opponent\'s turn 
        |your second spell each turn
        |by one or more Orcs|an opponent controls|from your graveyard
        |from your library|on a six-sided die|on a die|from anywhere
    ))?
##  Whenever statement ends in a comma!
\,