fork download
  1. <?php
  2.  
  3. $s = "\"[[Elemental HERO Flame Wingman]]\" + \"[[Elemental HERO Sparkman]]\"\nMust be [[Fusion Summon]]ed and cannot be [[Special Summon]]ed by other ways. This card gains 300 [[ATK]] for each \"[[Elemental HERO]]\" card in your [[Graveyard]]. When this card [[destroy]]s a [[Monster Card|monster]] [[Destroyed by Battle|by battle]] and [[send]]s it to the Graveyard: Inflict [[Effect Damage|damage]] to your opponent equal to the ATK of the destroyed monster in the Graveyard.";
  4. $s = preg_replace('/(\[\[([\w\s]*)\|)/', "" , $s);
  5. echo $s;
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
"[[Elemental HERO Flame Wingman]]" + "[[Elemental HERO Sparkman]]"
Must be [[Fusion Summon]]ed and cannot be [[Special Summon]]ed by other ways. This card gains 300 [[ATK]] for each "[[Elemental HERO]]" card in your [[Graveyard]]. When this card [[destroy]]s a monster]] by battle]] and [[send]]s it to the Graveyard: Inflict damage]] to your opponent equal to the ATK of the destroyed monster in the Graveyard.