// $(document).ready(function() {
//   $('.postbody').each(function() {
//     $(this).html(makeCardLink($(this).html()));
//   });
//   //$('.postbody:not(a)').html(makeCardLink($(this).html()));
// });
// function makeCardLink(text) {
//   
//   var NPH_regex = /(Karn Liberated|Apostle's Blessing|Auriok Survivors|Blade Splicer|Cathedral Membrane|Chancellor of the Annex|Dispatch|Due Respect|Elesh Norn, Grand Cenobite|Exclusion Ritual|Forced Worship|Inquisitor Exarch|Lost Leonin|Loxodon Convert|Marrow Shards|Master Splicer|Norn's Annex|Phyrexian Unlife|Porcelain Legionnaire|Puresteel Paladin|Remember the Fallen|Sensor Splicer|Shattered Angel|Shriek Raptor|Suture Priest|War Report|Argent Mutation|Arm with Æther|Arm with AEther|Blighted Agent|Chained Throatseeker|Chancellor of the Spires|Corrupted Resolve|Deceiver Exarch|Defensive Stance|Gitaxian Probe|Impaler Shrike|Jin-Gitaxias, Core Augur|Mental Misstep|Mindculling|Numbing Dose|Phyrexian Ingester|Phyrexian Metamorph|Psychic Barrier|Psychic Surgery|Spined Thopter|Spire Monitor|Tezzeret's Gambit|Vapor Snag|Viral Drake|Wing Splicer|Xenograft|Blind Zealot|Caress of Phyrexia|Chancellor of the Dross|Dementia Bat|Despise|Dismember|Enslave|Entomber Exarch|Evil Presence|Geth's Verdict|Glistening Oil|Grim Affliction|Ichor Explosion|Life's Finale|Mortis Dogs|Parasitic Implant|Phyrexian Obliterator|Pith Driller|Postmortem Lunge|Praetor's Grasp|Reaper of Sheoldred|Sheoldred, Whispering One|Surgical Extraction|Toxic Nim|Vault Skirge|Whispering Specter|Act of Aggression|Artillerize|Bludgeon Brawl|Chancellor of the Forge|Fallen Ferromancer|Flameborn Viron|Furnace Scamp|Geosurge|Gut Shot|Invader Parasite|Moltensteel Dragon|Ogre Menial|Priest of Urabrask|Rage Extractor|Razor Swine|Ruthless Invasion|Scrapyard Salvo|Slag Fiend|Slash Panther|Tormentor Exarch|Urabrask the Hidden|Victorious Destruction|Volt Charge|Vulshok Refugee|Whipflare|Beast Within|Birthing Pod|Brutalizer Exarch|Chancellor of the Tangle|Corrosive Gale|Death-Hood Cobra|Fresh Meat|Glissa's Scorn|Glistener Elf|Greenhilt Trainee|Leeching Bite|Maul Splicer|Melira, Sylvok Outcast|Mutagenic Growth|Mycosynth Fiend|Noxious Revival|Phyrexian Swarmlord|Rotted Hystrix|Spinebiter|Thundering Tanadon|Triumph of the Hordes|Viridian Betrayers|Viridian Harvest|Vital Splicer|Vorinclex, Voice of Hunger|Jor Kadeen, the Prevailer|Alloy Myr|Batterskull|Blinding Souleater|Caged Sun|Conversion Chamber|Darksteel Relic|Etched Monstrosity|Gremlin Mine|Hex Parasite|Hovermyr|Immolating Souleater|Insatiable Souleater|Isolation Cell|Kiln Walker|Lashwrithe|Mindcrank|Mycosynth Wellspring|Myr Superion|Necropouncer|Omen Machine|Pestilent Souleater|Phyrexian Hulk|Pristine Talisman|Shrine of Boundless Growth|Shrine of Burning Rage|Shrine of Limitless Power|Shrine of Loyal Legions|Shrine of Piercing Vision|Sickleslicer|Soul Conduit|Spellskite|Surge Node|Sword of War and Peace|Torpor Orb|Trespassing Souleater|Unwinding Clock|Phyrexia's Core)/ig;
//   text = text.replace(NPH_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var MBS_regex = /(Accorder Paladin|Ardent Recruit|Banishment Decree|Black Sun's Zenith|Bladed Sentinel|Blightsteel Colossus|Blightwidow|Blisterstick Shaman|Blue Sun's Zenith|Bonehoard|Brass Squire|Burn the Impure|Caustic Hound|Choking Fumes|Concussive Bolt|Consecrated Sphinx|Contested War Zone|Copper Carapace|Core Prowler|Corrupted Conscience|Creeping Corrosion|Crush|Cryptoplasm|Darksteel Plate|Decimator Web|Distant Memories|Divine Offering|Dross Ripper|Fangren Marauder|Flayer Husk|Flensermite|Flesh-Eater Imp|Frantic Salvage|Fuel for the Cause|Galvanoth|Glissa, the Traitor|Glissa's Courier|Gnathosaur|Go for the Throat|Goblin Wardriver|Gore Vassal|Green Sun's Zenith|Gruesome Encore|Gust-Skimmer|Hellkite Igniter|Hero of Bladehold|Hero of Oxid Ridge|Hexplate Golem|Horrifying Revelation|Ichor Wellspring|Inkmoth Nexus|Into the Core|Kemba's Legion|Knowledge Pool|Koth's Courier|Kuldotha Flamefiend|Kuldotha Ringleader|Lead the Stampede|Leonin Relic-Warder|Leonin Skyhunter|Loxodon Partisan|Lumengrid Gargoyle|Magnetic Mine|Massacre Wurm|Master's Call|Melira's Keepers|Metallic Mastery|Mirran Crusader|Mirran Mettle|Mirran Spy|Mirrorworks|Mitotic Manipulation|Morbid Plunder|Mortarpod|Myr Sire|Myr Turbine|Myr Welder|Nested Ghoul|Neurok Commando|Oculus|Ogre Resister|Peace Strider|Phyresis|Phyrexian Crusader|Phyrexian Digester|Phyrexian Hydra|Phyrexian Jug|Phyrexian Rager|Phyrexian Rebirth|Phyrexian Revoker|Phyrexian Vatmother|Pierce Strider|Piston Sledge|Pistus Strike|Plague Myr|Plaguemaw Beast|Praetor's Counsel|Priests of Norn|Psychosis Crawler|Quicksilver Geyser|Quilled Slagwurm|Rally the Forces|Razorfield Rhino|Red Sun's Zenith|Rot Wolf|Rusted Slasher|Sangromancer|Scourge Servant|Septic Rats|Serum Raker|Shimmer Myr|Shriekhorn|Signal Pest|Silverskin Armor|Skinwing|Slagstorm|Sphere of the Suns|Spin Engine|Spine of Ish Sah|Spiraling Duelist|Spire Serpent|Spread the Sickness|Steel Sabotage|Strandwalker|Sword of Feast and Famine|Tangle Hulk|Tangle Mantis|Tezzeret, Agent of Bolas|Thopter Assembly|Thrun, the Last Troll|Tine Shrike|Titan Forge|Training Drone|Treasure Mage|Turn the Tide|Unnatural Predation|Vedalken Anatomist|Vedalken Infuser|Victory's Herald|Viridian Claw|Viridian Corrupter|Viridian Emissary|Virulent Wound|Vivisection|White Sun's Zenith)/ig;
//   text = text.replace(MBS_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var SOM_regex = /(Abuna Acolyte|Accorder's Shield|Acid Web Spider|Alpha Tyrranax|Arc Trail|Argent Sphinx|Argentum Armor|Arrest|Asceticism|Assault Strobe|Auriok Edgewright|Auriok Replica|Auriok Sunchaser|Barbed Battlegear|Barrage Ogre|Bellowing Tanglewurm|Blackcleave Cliffs|Blackcleave Goblin|Bladed Pinions|Blade-Tribe Berserkers|Bleak Coven Vampires|Blight Mamba|Blistergrub|Bloodshot Trainee|Blunt the Assault|Bonds of Quicksilver|Carapace Forger|Carnifex Demon|Carrion Call|Cerebral Eruption|Chimeric Mass|Chrome Steed|Clone Shell|Contagion Clasp|Contagion Engine|Contagious Nim|Copper Myr|Copperhorn Scout|Copperline Gorge|Corpse Cur|Corrupted Harvester|Culling Dais|Cystbearer|Darkslick Drake|Darkslick Shores|Darksteel Axe|Darksteel Juggernaut|Darksteel Myr|Darksteel Sentinel|Dispense Justice|Disperse|Dissipation Field|Dross Hopper|Echo Circlet|Elspeth Tirel|Embersmith|Engulfing Slagwurm|Etched Champion|Exsanguinate|Ezuri, Renegade Leader|Ezuri's Archers|Ezuri's Brigade|Ferrovore|Flameborn Hellion|Flesh Allergy|Flight Spellbomb|Fulgent Distraction|Fume Spitter|Furnace Celebration|Galvanic Blast|Genesis Wave|Geth, Lord of the Vault|Ghalma's Warden|Glimmerpoint Stag|Glimmerpost|Glint Hawk|Glint Hawk Idol|Goblin Gaveleer|Gold Myr|Golden Urn|Golem Artisan|Golem Foundry|Golem's Heart|Grafted Exoskeleton|Grand Architect|Grasp of Darkness|Grindclock|Halt Order|Hand of the Praetors|Heavy Arbalest|Hoard-Smelter Dragon|Horizon Spellbomb|Ichor Rats|Ichorclaw Myr|Indomitable Archangel|Inexorable Tide|Infiltration Lens|Instill Infection|Iron Myr|Kemba, Kha Regent|Kemba's Skyguard|Koth of the Hammer|Kuldotha Forgemaster|Kuldotha Phoenix|Kuldotha Rebirth|Leaden Myr|Leonin Arbiter|Liege of the Tangle|Lifesmith|Liquimetal Coating|Livewire Lash|Loxodon Wayfarer|Lumengrid Drake|Lux Cannon|Melt Terrain|Memnite|Memoricide|Mimic Vat|Mindslaver|Molder Beast|Molten Psyche|Molten-Tail Masticore|Moriok Reaver|Moriok Replica|Mox Opal|Myr Battlesphere|Myr Galvanizer|Myr Propagator|Myr Reservoir|Myrsmith|Necrogen Censer|Necrogen Scudder|Necropede|Necrotic Ooze|Neurok Invisimancer|Neurok Replica|Nihil Spellbomb|Nim Deathmantle|Ogre Geargrabber|Origin Spellbomb|Oxidda Daredevil|Oxidda Scrapmelter|Painful Quandary|Painsmith|Palladium Myr|Panic Spellbomb|Perilous Myr|Plague Stinger|Plated Seastrider|Platinum Emperion|Precursor Golem|Prototype Portal|Psychic Miasma|Putrefax|Quicksilver Gargantuan|Ratchet Bomb|Razor Hippogriff|Razorfield Thresher|Razorverge Thicket|Relic Putrescence|Revoke Existence|Riddlesmith|Rust Tick|Rusted Relic|Saberclaw Golem|Salvage Scout|Scoria Elemental|Scrapdiver Serpent|Screeching Silcaw|Seachrome Coast|Seize the Initiative|Semblance Anvil|Shape Anew|Shatter|Silver Myr|Skinrender|Skithiryx, the Blight Dragon|Sky-Eel School|Slice in Twain|Snapsail Glider|Soliton|Soul Parry|Spikeshot Elder|Steady Progress|Steel Hellkite|Stoic Rebuttal|Strata Scythe|Strider Harness|Sunblast Angel|Sunspear Shikari|Sword of Body and Mind|Sylvok Lifestaff|Sylvok Replica|Tainted Strike|Tangle Angler|Tel-Jilad Defiance|Tel-Jilad Fallen|Tempered Steel|Throne of Geth|Thrummingbird|Tower of Calamities|Trigon of Corruption|Trigon of Infestation|Trigon of Mending|Trigon of Rage|Trigon of Thought|Trinket Mage|True Conviction|Tumble Magnet|Tunnel Ignus|Turn Aside|Turn to Slag|Twisted Image|Untamed Might|Vault Skyward|Vector Asp|Vedalken Certarch|Venser, the Sojourner|Venser's Journal|Vigil for the Lost|Viridian Revel|Volition Reins|Vulshok Heartstoker|Vulshok Replica|Wall of Tanglecord|Whitesun's Passage|Wing Puncture|Withstand Death|Wurmcoil Engine)/ig;
//   text = text.replace(SOM_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var M11_regex = /(Acidic Slime|Act of Treason|Air Servant|Ajani Goldmane|Ajani's Mantra|Ajani's Pridemate|Alluring Siren|Ancient Hellkite|Angel's Feather|Angelic Arbiter|Arc Runner|Armored Ascension|Armored Cancrix|Assassinate|Assault Griffin|Æther Adept|AEther Adept|Augury Owl|Autumn's Veil|Awakener Druid|Azure Drake|Back to Nature|Baneslayer Angel|Barony Vampire|Berserkers of Blood Ridge|Birds of Paradise|Black Knight|Blinding Mage|Blood Tithe|Bloodcrazed Goblin|Bloodthrone Vampire|Bog Raiders|Brindle Boar|Brittle Effigy|Call to Mind|Cancel|Canyon Minotaur|Captivating Vampire|Celestial Purge|Chandra Nalaar|Chandra's Outrage|Chandra's Spitfire|Child of Night|Clone|Cloud Crusader|Cloud Elemental|Combust|Condemn|Conundrum Sphinx|Corrupt|Crystal Ball|Cudgel Troll|Cultivate|Cyclops Gladiator|Dark Tutelage|Deathmark|Demolish|Demon of Death's Gate|Demon's Horn|Destructive Force|Diabolic Tutor|Diminish|Disentomb|Doom Blade|Dragon's Claw|Dragonskull Summit|Drowned Catacomb|Dryad's Favor|Duress|Duskdale Wurm|Earth Servant|Elite Vanguard|Elixir of Immortality|Elvish Archdruid|Ember Hauler|Excommunicate|Fauna Shaman|Fiery Hellhound|Fire Servant|Fireball|Flashfreeze|Fling|Fog|Foresee|Frost Titan|Gaea's Revenge|Gargoyle Sentinel|Garruk Wildspeaker|Garruk's Companion|Garruk's Packleader|Giant Growth|Giant Spider|Glacial Fortress|Goblin Balloon Brigade|Goblin Chieftain|Goblin Piker|Goblin Tunneler|Goldenglow Moth|Grave Titan|Gravedigger|Greater Basilisk|Harbor Serpent|Haunting Echoes|Hoarding Dragon|Holy Strength|Honor of the Pure|Hornet Sting|Howling Banshee|Hunters' Feast|Ice Cage|Incite|Infantry Veteran|Inferno Titan|Inspired Charge|Jace Beleren|Jace's Erasure|Jace's Ingenuity|Jinxed Idol|Juggernaut|Knight Exemplar|Kraken's Eye|Lava Axe|Leyline of Anticipation|Leyline of Punishment|Leyline of Sanctity|Leyline of Vitality|Leyline of the Void|Lightning Bolt|Liliana Vess|Liliana's Caress|Liliana's Specter|Llanowar Elves|Magma Phoenix|Mana Leak|Manic Vandal|Maritime Guard|Mass Polymorph|Merfolk Sovereign|Merfolk Spy|Mighty Leap|Mind Control|Mind Rot|Mitotic Slime|Mystifying Maze|Nantuko Shade|Naturalize|Nature's Spiral|Necrotic Plague|Negate|Nether Horror|Nightwing Shade|Obstinate Baloth|Ornithopter|Overwhelming Stampede|Pacifism|Palace Guard|Phantom Beast|Phylactery Lich|Platinum Angel|Plummet|Preordain|Primal Cocoon|Primeval Titan|Prized Unicorn|Prodigal Pyromancer|Protean Hydra|Pyretic Ritual|Pyroclasm|Quag Sickness|Reassembling Skeleton|Redirect|Relentless Rats|Reverberate|Rise from the Grave|Roc Egg|Rootbound Crag|Rotting Legion|Royal Assassin|Runeclaw Bear|Sacred Wolf|Safe Passage|Scroll Thief|Serra Angel|Serra Ascendant|Shiv's Embrace|Siege Mastodon|Sign in Blood|Silence|Silvercoat Lion|Sleep|Solemn Offering|Sorcerer's Strongbox|Spined Wurm|Squadron Hawk|Stabbing Pain|Steel Overseer|Stone Golem|Stormfront Pegasus|Stormtide Leviathan|Sun Titan|Sunpetal Grove|Sword of Vengeance|Sylvan Ranger|Temple Bell|Terramorphic Expanse|Thunder Strike|Time Reversal|Tireless Missionaries|Tome Scour|Traumatize|Triskelion|Unholy Strength|Unsummon|Vengeful Archon|Viscera Seer|Volcanic Strength|Voltaic Key|Vulshok Berserker|Wall of Frost|Wall of Vines|War Priest of Thune|Warlord's Axe|Water Servant|Whispersilk Cloak|White Knight|Wild Evocation|Wild Griffin|Wurm's Tooth|Yavimaya Wurm)/ig;
//   text = text.replace(M11_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var ROE_regex = /(Affa Guard Hound|Akoum Boulderfoot|All Is Dust|Ancient Stirrings|Angelheart Vial|Arrogant Bloodlord|Artisan of Kozilek|Aura Finesse|Aura Gnarlid|Awakening Zone|Bala Ged Scorpion|Baneful Omen|Battle Rampart|Battle-Rattle Shaman|Bear Umbra|Beastbreaker of Bala Ged|Bloodrite Invoker|Bloodthrone Vampire|Boar Umbra|Bramblesnap|Brimstone Mage|Brood Birthing|Broodwarden|Cadaver Imp|Caravan Escort|Cast Through Time|Champion's Drake|Conquering Manticore|Consume the Meek|Consuming Vapors|Contaminated Ground|Coralhelm Commander|Corpsehatch|Crab Umbra|Curse of Wizardry|Daggerback Basilisk|Dawnglare Invoker|Death Cultist|Deathless Angel|Demonic Appetite|Demystify|Deprive|Devastating Summons|Disaster Radius|Distortion Strike|Domestication|Dormant Gomazoa|Drake Umbra|Drana, Kalastria Bloodchief|Dread Drone|Dreamstone Hedron|Echo Mage|Eel Umbra|Eland Umbra|Eldrazi Conscription|Eldrazi Temple|Emerge Unscathed|Emrakul's Hatcher|Emrakul, the Aeons Torn|Enatu Golem|Enclave Cryptologist|Escaped Null|Essence Feed|Evolving Wilds|Explosive Revelation|Fissure Vent|Flame Slash|Fleeting Distraction|Forked Bolt|Frostwind Invoker|Gelatinous Genesis|Gideon Jura|Gigantomancer|Gloomhunter|Glory Seeker|Goblin Arsonist|Goblin Tunneler|Gravitational Shift|Gravity Well|Grotag Siege-Runner|Growth Spasm|Guard Duty|Guard Gomazoa|Guul Draz Assassin|Hada Spy Patrol|Halimar Wavewatch|Hand of Emrakul|Harmless Assault|Haze Frog|Heat Ray|Hedron Matrix|Hedron-Field Purists|Hellcarver Demon|Hellion Eruption|Hyena Umbra|Ikiral Outrider|Induce Despair|Inquisition of Kozilek|Irresistible Prey|It That Betrays|Jaddi Lifestrider|Joraga Treespeaker|Jwari Scuttler|Kabira Vindicator|Kargan Dragonlord|Kazandu Tuskcaller|Keening Stone|Khalni Hydra|Kiln Fiend|Knight of Cliffhaven|Kor Line-Slinger|Kor Spiritdancer|Kozilek's Predator|Kozilek, Butcher of Truth|Lagac Lizard|Last Kiss|Lavafume Invoker|Lay Bare|Leaf Arrow|Lighthouse Chronologist|Lightmine Field|Linvala, Keeper of Silence|Living Destiny|Lone Missionary|Lord of Shatterskull Pass|Luminous Wake|Lust for War|Magmaw|Makindi Griffin|Mammoth Umbra|Merfolk Observer|Merfolk Skyscout|Might of the Masses|Mnemonic Wall|Momentous Fall|Mortician Beetle|Mul Daya Channelers|Narcolepsy|Naturalize|Near-Death Experience|Nema Siltlurker|Nest Invader|Nighthaze|Nirkana Cutthroat|Nirkana Revenant|Nomads' Assembly|Not of This World|Null Champion|Ogre Sentry|Ogre's Cleaver|Ondu Giant|Oust|Overgrown Battlement|Pathrazer of Ulamog|Pawn of Ulamog|Pelakka Wurm|Pennon Blade|Perish the Thought|Pestilence Demon|Phantasmal Abomination|Prey's Vengeance|Prophetic Prism|Puncturing Light|Rage Nimbus|Raid Bombardment|Rapacious One|Reality Spasm|Realms Uncharted|Recurring Insight|Regress|Reinforced Bulwark|Renegade Doppelganger|Repay in Kind|Repel the Darkness|Runed Servitor|Sarkhan the Mad|Sea Gate Oracle|See Beyond|Shared Discovery|Shrivel|Skeletal Wurm|Skittering Invasion|Skywatcher Adept|Smite|Snake Umbra|Soul's Attendant|Soulbound Guardians|Soulsurge Elemental|Spawning Breath|Spawnsire of Ulamog|Sphinx of Magosi|Sphinx-Bone Wand|Spider Umbra|Splinter Twin|Sporecap Spider|Staggershock|Stalwart Shield-Bearers|Stomper Cub|Student of Warfare|Suffer the Past|Surrakar Spellblade|Surreal Memoir|Survival Cache|Tajuru Preserver|Thought Gorger|Time of Heroes|Totem-Guide Hartebeest|Training Grounds|Traitorous Instinct|Transcendent Master|Tuktuk the Explorer|Ulamog's Crusher|Ulamog, the Infinite Gyre|Umbra Mystic|Unified Will|Valakut Fireboar|Vendetta|Venerated Teacher|Vengevine|Vent Sentinel|Virulent Swipe|Wall of Omens|Warmonger's Chariot|Wildheart Invoker|World at War|Wrap in Flames|Zof Shade|Zulaport Enforcer)/ig;
//   text = text.replace(ROE_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var WWK_regex = /(Abyssal Persecutor|Admonition Angel|Agadeem Occultist|Akoum Battlesinger|Amulet of Vigor|Anowon, the Ruin Sage|Apex Hawks|Arbor Elf|Archon of Redemption|Æther Tradewinds|Avenger of Zendikar|Basilisk Collar|Battle Hurda|Bazaar Trader|Bestial Menace|Bloodhusk Ritualist|Bojuka Bog|Bojuka Brigand|Brink of Disaster|Bull Rush|Butcher of Malakir|Calcite Snapper|Canopy Cover|Caustic Crawler|Celestial Colonnade|Chain Reaction|Claws of Valakut|Comet Storm|Corrupted Zendikon|Cosi's Ravager|Creeping Tar Pit|Crusher Zendikon|Cunning Sparkmage|Dead Reckoning|Death's Shadow|Deathforge Shaman|Dispel|Dragonmaster Outcast|Dread Statuary|Enclave Elite|Everflowing Chalice|Explore|Eye of Ugin|Feral Contest|Fledgling Griffin|Gnarlid Pack|Goblin Roughrider|Goliath Sphinx|Grappler Spider|Graypelt Hunter|Grotag Thrasher|Groundswell|Guardian Zendikon|Hada Freeblade|Halimar Depths|Halimar Excavator|Hammer of Ruin|Harabaz Druid|Hedron Rover|Horizon Drake|Iona's Judgment|Jace, the Mind Sculptor|Jagwasp Swarm|Join the Ranks|Joraga Warcaller|Jwari Shapeshifter|Kalastria Highborn|Kazuul, Tyrant of the Cliffs|Khalni Garden|Kitesail|Kitesail Apprentice|Kor Firewalker|Lavaclaw Reaches|Leatherback Baloth|Lightkeeper of Emeria|Loam Lion|Lodestone Golem|Marsh Threader|Marshal's Anthem|Mire's Toll|Mordant Dragon|Mysteries of the Deep|Nature's Claim|Nemesis Trap|Novablast Wurm|Omnath, Locus of Mana|Perimeter Captain|Permafrost Trap|Pilgrim's Eye|Pulse Tracker|Quag Vampires|Quest for Renewal|Quest for Ula's Temple|Quest for the Goblin Lord|Quest for the Nihil Stone|Quicksand|Raging Ravine|Razor Boomerang|Refraction Trap|Rest for the Weary|Ricochet Trap|Roiling Terrain|Ruin Ghost|Rumbling Aftershocks|Ruthless Cullblade|Scrib Nibblers|Searing Blaze|Seer's Sundial|Sejiri Merfolk|Sejiri Steppe|Selective Memory|Shoreline Salvager|Skitter of Lizards|Slavering Nulls|Slingbow Trap|Smoldering Spires|Smother|Snapping Creeper|Spell Contortion|Stirring Wildwood|Stone Idol Trap|Stoneforge Mystic|Strength of the Tajuru|Summit Apes|Surrakar Banisher|Talus Paladin|Tectonic Edge|Terastodon|Terra Eternal|Thada Adel, Acquisitor|Tideforce Elemental|Tomb Hex|Treasure Hunt|Tuktuk Scrapper|Twitch|Urge to Feed|Vapor Snare|Vastwood Animist|Vastwood Zendikon|Veteran's Reflexes|Voyager Drake|Walking Atlas|Wind Zendikon|Wolfbriar Elemental|Wrexial, the Risen Deep)/ig;
//   text = text.replace(WWK_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var ZEN_regex = /(Adventuring Gear|Akoum Refuge|Archive Trap|Archmage Ascension|Arid Mesa|Armament Master|Arrow Volley Trap|Æther Figment|AEther Figment|Bala Ged Thief|Baloth Cage Trap|Baloth Woodcrasher|Beast Hunt|Beastmaster Ascension|Blade of the Bloodchief|Bladetusk Boar|Blazing Torch|Blood Seeker|Blood Tribute|Bloodchief Ascension|Bloodghast|Bog Tatters|Bold Defense|Brave the Elements|Burst Lightning|Caller of Gales|Cancel|Caravan Hurda|Carnage Altar|Celestial Mantle|Chandra Ablaze|Cliff Threader|Cobra Trap|Conqueror's Pledge|Cosi's Trickster|Crypt Ripper|Crypt of Agadeem|Day of Judgment|Demolish|Desecrated Earth|Devout Lightcaster|Disfigure|Eldrazi Monument|Electropotence|Elemental Appeal|Emeria Angel|Emeria, the Sky Ruin|Eternity Vessel|Expedition Map|Explorer's Scope|Feast of Blood|Felidar Sovereign|Frontier Guide|Gatekeeper of Malakir|Geyser Glider|Giant Scorpion|Gigantiform|Goblin Bushwhacker|Goblin Guide|Goblin Ruinblaster|Goblin Shortcutter|Goblin War Paint|Gomazoa|Grappling Hook|Graypelt Refuge|Grazing Gladehart|Greenweaver Druid|Grim Discovery|Guul Draz Specter|Guul Draz Vampire|Hagra Crocodile|Hagra Diabolist|Halo Hunter|Harrow|Heartstabber Mosquito|Hedron Crab|Hedron Scrabbler|Hellfire Mongrel|Hellkite Charger|Hideous End|Highland Berserker|Inferno Trap|Into the Roil|Iona, Shield of Emeria|Ior Ruin Expedition|Joraga Bard|Journey to Nowhere|Jwar Isle Refuge|Kabira Crossroads|Kabira Evangel|Kalitas, Bloodchief of Ghet|Kazandu Blademaster|Kazandu Refuge|Kazuul Warlord|Khalni Gem|Khalni Heart Expedition|Kor Aeronaut|Kor Cartographer|Kor Duelist|Kor Hookmaster|Kor Outfitter|Kor Sanctifiers|Kor Skyfisher|Kraken Hatchling|Landbind Ritual|Lavaball Trap|Lethargy Trap|Living Tsunami|Lorthos, the Tidemaker|Lotus Cobra|Lullmage Mentor|Luminarch Ascension|Magma Rift|Magosi, the Waterveil|Makindi Shieldmate|Malakir Bloodwitch|Mark of Mutiny|Marsh Casualties|Marsh Flats|Merfolk Seastalkers|Merfolk Wayfinder|Mind Sludge|Mindbreak Trap|Mindless Null|Mire Blight|Misty Rainforest|Mold Shambler|Molten Ravager|Murasa Pyromancer|Narrow Escape|Needlebite Trap|Nimana Sell-Sword|Nimbus Wings|Nissa Revane|Nissa's Chosen|Noble Vestige|Ob Nixilis, the Fallen|Obsidian Fireheart|Ondu Cleric|Oracle of Mul Daya|Oran-Rief Recluse|Oran-Rief Survivalist|Oran-Rief, the Vastwood|Paralyzing Grasp|Pillarfield Ox|Piranha Marsh|Pitfall Trap|Plated Geopede|Predatory Urge|Primal Bellow|Punishing Fire|Pyromancer Ascension|Quest for Ancient Secrets|Quest for Pure Flame|Quest for the Gemblades|Quest for the Gravelord|Quest for the Holy Relic|Rampaging Baloths|Ravenous Trap|Reckless Scholar|Relic Crush|Rite of Replication|River Boa|Roil Elemental|Ruinous Minotaur|Runeflare Trap|Sadistic Sacrament|Savage Silhouette|Scalding Tarn|Scute Mob|Scythe Tiger|Sea Gate Loremaster|Seascape Aerialist|Seismic Shudder|Sejiri Refuge|Shatterskull Giant|Shepherd of the Lost|Shieldmate's Blessing|Shoal Serpent|Sky Ruin Drake|Slaughter Cry|Soaring Seacliff|Sorin Markov|Soul Stair Expedition|Spell Pierce|Sphinx of Jwar Isle|Sphinx of Lost Truths|Spidersilk Net|Spire Barrage|Spreading Seas|Steppe Lynx|Stonework Puma|Summoner's Bane|Summoning Trap|Sunspring Expedition|Surrakar Marauder|Tajuru Archer|Tanglesap|Teetering Peaks|Tempest Owl|Terra Stomper|Territorial Baloth|Timbermaw Larva|Torch Slinger|Trailblazer's Boots|Trapfinder's Trick|Trapmaker's Snare|Trusty Machete|Tuktuk Grunts|Turntimber Basilisk|Turntimber Grove|Turntimber Ranger|Umara Raptor|Unstable Footing|Valakut, the Molten Pinnacle|Vampire Hexmage|Vampire Lacerator|Vampire Nighthawk|Vampire's Bite|Vastwood Gorger|Verdant Catacombs|Vines of Vastwood|Warren Instigator|Welkin Tern|Whiplash Trap|Windborne Charge|Windrider Eel|World Queller|Zektar Shrine Expedition|Zendikar Farguide)/ig;
//   text = text.replace(ZEN_regex, '<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   var nicknames = [];
//   nicknames["Carnifex Demon"] = /([^\w])(Carfax Demon)([^\w])/ig;
//   nicknames["Jace, the Mind Sculptor"] = /([^\w])(JTMS)([^\w])/ig;
//   nicknames["Oblivion Ring"] = /([^\w])(O-?Ring)([^\w])/ig;
//   nicknames["Trinket Mage"] = /([^\w])(T-?Mage)([^\w])/ig;
//   nicknames["Elspeth Tirel"] = /([^\w])(Big Elspeth)([^\w])/ig;
//   
//   for (i in nicknames) {
//     text = text.replace(nicknames[i], "$1" + '<a href="http://deckbox.org/mtg/' + i + '">' + "$2" + '</a>' + "$3");
//   }
//   
//   var LANDS_regex = /(Forest|Island|Mountain|Plains|Swamp)/ig;
//   text = text.replace(LANDS_regex,'<a href="http://deckbox.org/mtg/' + "$1" + '">' + "$1" + '</a>');
//   
//   return text;
//   
// }

