#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)\[3\] = {[\s]+title = [^\n]+[\s]+args = {\n(([\s]*{[^\n]+\n)*)[\s]*},[\s]+icon = [\d]+[\s]+},"
Local $sString = " [1] = { -- Affliction" & @CRLF & _
" [1] = {" & @CRLF & _
" title = L["Buffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "buff", unit = "player"}, -- Eye of Kilrogg" & @CRLF & _
" { spell = 755, type = "buff", unit = "pet"}, -- Health Funnel" & @CRLF & _
" { spell = 5697, type = "buff", unit = "player"}, -- Unending Breath" & @CRLF & _
" { spell = 7870, type = "buff", unit = "pet"}, -- Lesser Invisibility" & @CRLF & _
" { spell = 17767, type = "buff", unit = "pet"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 20707, type = "buff", unit = "group"}, -- Soulstone" & @CRLF & _
" { spell = 48018, type = "buff", unit = "player"}, -- Demonic Circle" & @CRLF & _
" { spell = 104773, type = "buff", unit = "player"}, -- Unending Resolve" & @CRLF & _
" { spell = 108366, type = "buff", unit = "player"}, -- Soul Leech" & @CRLF & _
" { spell = 108416, type = "buff", unit = "player", talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 112042, type = "buff", unit = "pet"}, -- Threatening Presence" & @CRLF & _
" { spell = 113860, type = "buff", unit = "player", talent = 21 }, -- Dark Soul: Misery" & @CRLF & _
" { spell = 111400, type = "buff", unit = "player", talent = 8 }, -- Burning Rush" & @CRLF & _
" { spell = 196099, type = "buff", unit = "player", talent = 18 }, -- Grimoire of Sacrifice" & @CRLF & _
" { spell = 264571, type = "buff", unit = "player", talent = 1 }, -- Nightfall" & @CRLF & _
" { spell = 334320, type = "buff", unit = "player", talent = 2 }, -- Inevitable Demise" & @CRLF & _
" }," & @CRLF & _
" icon = 136210" & @CRLF & _
" }," & @CRLF & _
" [2] = {" & @CRLF & _
" title = L["Debuffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 702, type = "debuff", unit = "target"}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "debuff", unit = "multi"}, -- Banish" & @CRLF & _
" { spell = 980, type = "debuff", unit = "target"}, -- Agony" & @CRLF & _
" { spell = 1098, type = "debuff", unit = "multi"}, -- Enslave Demon" & @CRLF & _
" { spell = 1714, type = "debuff", unit = "target"}, -- Curse of Tongues" & @CRLF & _
" { spell = 6358, type = "debuff", unit = "target"}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "debuff", unit = "target"}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "debuff", unit = "target", talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 17735, type = "debuff", unit = "target"}, -- Suffering" & @CRLF & _
" { spell = 27243, type = "debuff", unit = "target"}, -- Seed of Corruption" & @CRLF & _
" { spell = 30283, type = "debuff", unit = "target"}, -- Shadowfury" & @CRLF & _
" { spell = 48181, type = "debuff", unit = "target", talent = 17 }, -- Haunt" & @CRLF & _
" { spell = 63106, type = "debuff", unit = "target", talent = 6 }, -- Siphon Life" & @CRLF & _
" { spell = 118699, type = "debuff", unit = "target"}, -- Fear" & @CRLF & _
" { spell = 146739, type = "debuff", unit = "target"}, -- Corruption" & @CRLF & _
" { spell = 198590, type = "debuff", unit = "target", talent = 2 }, -- Drain Soul" & @CRLF & _
" { spell = 205179, type = "debuff", unit = "target", talent = 11 }, -- Phantom Singularity" & @CRLF & _
" { spell = 234153, type = "debuff", unit = "target"}, -- Drain Life" & @CRLF & _
" { spell = 233490, type = "debuff", unit = "target"}, -- Unstable Affliction" & @CRLF & _
" { spell = 278350, type = "debuff", unit = "target", talent = 12 }, -- Vile Taint" & @CRLF & _
" { spell = 334275, type = "debuff", unit = "target"}, -- Curse of Exhaustion" & @CRLF & _
" }," & @CRLF & _
" icon = 136139" & @CRLF & _
" }," & @CRLF & _
" [3] = {" & @CRLF & _
" title = L["Abilities"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "ability"}, -- Eye of Kilrogg" & @CRLF & _
" { spell = 172, type = "ability", requiresTarget = true, debuff = true}, -- Corruption" & @CRLF & _
" { spell = 686, type = "ability", requiresTarget = true}, -- Shadow Bolt" & @CRLF & _
" { spell = 698, type = "ability"}, -- Ritual of Summoning" & @CRLF & _
" { spell = 702, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "ability", requiresTarget = true, debuff = true}, -- Banish" & @CRLF & _
" { spell = 755, type = "ability"}, -- Health Funnel" & @CRLF & _
" { spell = 980, type = "ability", requiresTarget = true, debuff = true}, -- Agony" & @CRLF & _
" { spell = 1714, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Tongues" & @CRLF & _
" { spell = 3110, type = "ability", requiresTarget = true}, -- Firebolt" & @CRLF & _
" { spell = 3716, type = "ability", requiresTarget = true}, -- Consuming Shadows" & @CRLF & _
" { spell = 5484, type = "ability"}, -- Howl of Terror" & @CRLF & _
" { spell = 5782, type = "ability", requiresTarget = true, debuff = true}, -- Fear" & @CRLF & _
" { spell = 6358, type = "ability", requiresTarget = true}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "ability", requiresTarget = true}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "ability", requiresTarget = true, talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 7814, type = "ability", requiresTarget = true}, -- Lash of Pain" & @CRLF & _
" { spell = 7870, type = "ability"}, -- Lesser Invisibility" & @CRLF & _
" { spell = 17735, type = "ability", requiresTarget = true, debuff = true}, -- Suffering" & @CRLF & _
" { spell = 17767, type = "ability"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 19505, type = "ability", requiresTarget = true}, -- Devour Magic" & @CRLF & _
" { spell = 19647, type = "ability", requiresTarget = true}, -- Spell Lock" & @CRLF & _
" { spell = 20707, type = "ability"}, -- Soulstone" & @CRLF & _
" { spell = 27243, type = "ability", requiresTarget = true}, -- Seed of Corruption" & @CRLF & _
" { spell = 29893, type = "ability"}, -- Create Soulwell" & @CRLF & _
" { spell = 30108, type = "ability", requiresTarget = true}, -- Unstable Affliction" & @CRLF & _
" { spell = 30283, type = "ability"}, -- Shadowfury" & @CRLF & _
" { spell = 48018, type = "ability"}, -- Demonic Circle" & @CRLF & _
" { spell = 48020, type = "ability", usable = true }, -- Demonic Circle: Teleport" & @CRLF & _
" { spell = 48181, type = "ability", requiresTarget = true, debuff = true, talent = 17 }, -- Haunt" & @CRLF & _
" { spell = 54049, type = "ability", requiresTarget = true}, -- Shadow Bite" & @CRLF & _
" { spell = 63106, type = "ability", requiresTarget = true, debuff = true, talent = 6}, -- Siphon Life" & @CRLF & _
" { spell = 89792, type = "ability" }, -- Flee" & @CRLF & _
" { spell = 89808, type = "ability"}, -- Singe Magic" & @CRLF & _
" { spell = 104773, type = "ability", buff = true}, -- Unending Resolve" & @CRLF & _
" { spell = 108416, type = "ability", buff = true, talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 108503, type = "ability", talent = 18 }, -- Grimoire of Sacrifice" & @CRLF & _
" { spell = 111771, type = "ability"}, -- Demonic Gateway" & @CRLF & _
" { spell = 112042, type = "ability"}, -- Threatening Presence" & @CRLF & _
" { spell = 113860, type = "ability", buff = true, talent = 21 }, -- Dark Soul: Misery" & @CRLF & _
" { spell = 119910, type = "ability", requiresTarget = true}, -- Command Demon" & @CRLF & _
" { spell = 198590, type = "ability", requiresTarget = true}, -- Drain Soul" & @CRLF & _
" { spell = 205179, type = "ability", requiresTarget = true, debuff = true, talent = 11 }, -- Phantom Singularity" & @CRLF & _
" { spell = 205180, type = "ability", totem = true}, -- Summon Darkglare" & @CRLF & _
" { spell = 232670, type = "ability", requiresTarget = true, overlayGlow = true}, -- Shadow Bolt" & @CRLF & _
" { spell = 234153, type = "ability", requiresTarget = true}, -- Drain Life" & @CRLF & _
" { spell = 264106, type = "ability", requiresTarget = true, talent = 3 }, -- Deathbolt" & @CRLF & _
" { spell = 264993, type = "ability"}, -- Shadow Shield" & @CRLF & _
" { spell = 278350, type = "ability", requiresTarget = true, talent = 12 }, -- Vile Taint" & @CRLF & _
" { spell = 316099, type = "ability", requiresTarget = true }, -- Unstable Affliction" & @CRLF & _
" { spell = 333889, type = "ability" }, -- Fel Domination" & @CRLF & _
" { spell = 334275, type = "ability", debuff = true, requiresTarget = true }, -- Curse of Exhaustion" & @CRLF & _
" { spell = 342601, type = "ability" }, -- Ritual of Doom" & @CRLF & _
" { spell = 324536, type = "ability" }, -- Malefic Rapture" & @CRLF & _
" }," & @CRLF & _
" icon = 135808" & @CRLF & _
" }," & @CRLF & _
" [4] = {}," & @CRLF & _
" [5] = {}," & @CRLF & _
" [6] = {}," & @CRLF & _
" [7] = {" & @CRLF & _
" title = L["PvP Talents"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 199954, type="ability", debuff = true, pvptalent = 9, titleSuffix = L["cooldown"]},-- Bane of Fragility" & @CRLF & _
" { spell = 199954, type="debuff", unit = "target", pvptalent = 9, titleSuffix = L["debuff"]},-- Bane of Fragility" & @CRLF & _
" { spell = 212295, type="ability", pvptalent = 5, titleSuffix = L["cooldown"]},-- Nether Ward" & @CRLF & _
" { spell = 212295, type="buff", unit = "player", pvptalent = 5, titleSuffix = L["buff"]},-- Nether Ward" & @CRLF & _
" { spell = 212356, type="ability", pvptalent = 12, titleSuffix = L["cooldown"]},-- Soulshatter" & @CRLF & _
" { spell = 221703, type="ability", pvptalent = 7, titleSuffix = L["cooldown"]},-- Casting Circle" & @CRLF & _
" { spell = 221705, type="buff", unit = "player", pvptalent = 7, titleSuffix = L["buff"]},-- Casting Circle" & @CRLF & _
" { spell = 221715, type="debuff", unit = "target", pvptalent = 6},-- Essence Drain" & @CRLF & _
" { spell = 264106, type="ability", pvptalent = 4},-- Deathbolt" & @CRLF & _
" { spell = 285933, type="buff", unit = "player", pvptalent = 13},-- Demon Armor" & @CRLF & _
" { spell = 234877, type="ability", pvptalent = 4},-- Bane of Shadows" & @CRLF & _
" { spell = 328774, type="ability", buff = true, pvptalent = 8},-- Amplify Curse" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\Achievement_BG_winWSG"," & @CRLF & _
" }," & @CRLF & _
" [8] = {" & @CRLF & _
" title = L["Resources"]," & @CRLF & _
" args = {" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\inv_misc_gem_amethyst_02"," & @CRLF & _
" }," & @CRLF & _
" }," & @CRLF & _
" [2] = { -- Demonology" & @CRLF & _
" [1] = {" & @CRLF & _
" title = L["Buffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "buff", unit = "player"}, -- Eye of Kilrogg" & @CRLF & _
" { spell = 755, type = "buff", unit = "pet"}, -- Health Funnel" & @CRLF & _
" { spell = 5697, type = "buff", unit = "player"}, -- Unending Breath" & @CRLF & _
" { spell = 17767, type = "buff", unit = "pet"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 20707, type = "buff", unit = "group"}, -- Soulstone" & @CRLF & _
" { spell = 30151, type = "buff", unit = "pet"}, -- Pursuit" & @CRLF & _
" { spell = 48018, type = "buff", unit = "player"}, -- Demonic Circle" & @CRLF & _
" { spell = 89751, type = "buff", unit = "pet"}, -- Felstorm" & @CRLF & _
" { spell = 104773, type = "buff", unit = "player"}, -- Unending Resolve" & @CRLF & _
" { spell = 108366, type = "buff", unit = "player"}, -- Soul Leech" & @CRLF & _
" { spell = 108416, type = "buff", unit = "player", talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 111400, type = "buff", unit = "player", talent = 8 }, -- Burning Rush" & @CRLF & _
" { spell = 134477, type = "buff", unit = "pet"}, -- Threatening Presence" & @CRLF & _
" { spell = 205146, type = "buff", unit = "player", talent = 4 }, -- Demonic Calling" & @CRLF & _
" { spell = 265273, type = "buff", unit = "player"}, -- Demonic Power" & @CRLF & _
" { spell = 267218, type = "buff", unit = "player", talent = 21 }, -- Nether Portal" & @CRLF & _
" { spell = 264173, type = "buff", unit = "player"}, -- Demonic Core" & @CRLF & _
" { spell = 267171, type = "buff", unit = "pet", talent = 3 }, -- Demonic Strength" & @CRLF & _
" }," & @CRLF & _
" icon = 1378284" & @CRLF & _
" }," & @CRLF & _
" [2] = {" & @CRLF & _
" title = L["Debuffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 603, type = "debuff", unit = "target"}, -- Doom" & @CRLF & _
" { spell = 702, type = "debuff", unit = "target"}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "debuff", unit = "multi"}, -- Banish" & @CRLF & _
" { spell = 1098, type = "debuff", unit = "multi"}, -- Enslave Demon" & @CRLF & _
" { spell = 1714, type = "debuff", unit = "target"}, -- Curse of Tongues" & @CRLF & _
" { spell = 6358, type = "debuff", unit = "target"}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "debuff", unit = "target"}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "debuff", unit = "target", talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 17735, type = "debuff", unit = "target"}, -- Suffering" & @CRLF & _
" { spell = 30213, type = "debuff", unit = "target"}, -- Legion Strike" & @CRLF & _
" { spell = 30283, type = "debuff", unit = "target"}, -- Shadowfury" & @CRLF & _
" { spell = 89766, type = "debuff", unit = "target"}, -- Axe Toss" & @CRLF & _
" { spell = 118699, type = "debuff", unit = "target"}, -- Fear" & @CRLF & _
" { spell = 146739, type = "debuff", unit = "target"}, -- Corruption" & @CRLF & _
" { spell = 267997, type = "debuff", unit = "target", talent = 2 }, -- Bile Spit" & @CRLF & _
" { spell = 270569, type = "debuff", unit = "target", talent = 10 }, -- From the Shadows" & @CRLF & _
" { spell = 234153, type = "debuff", unit = "target"}, -- Drain Life" & @CRLF & _
" { spell = 265412, type = "debuff", unit = "target", talent = 6 }, -- Doom" & @CRLF & _
" { spell = 334275, type = "debuff", unit = "target"}, -- Curse of Exhaustion" & @CRLF & _
" }," & @CRLF & _
" icon = 136122" & @CRLF & _
" }," & @CRLF & _
" [3] = {" & @CRLF & _
" title = L["Abilities"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "ability" }, -- Eyew of Kilrogg" & @CRLF & _
" { spell = 172, type = "ability" }, -- Corruption" & @CRLF & _
" { spell = 603, type = "ability", requiresTarget = true, debuff = true, talent = 6}, -- Doom" & @CRLF & _
" { spell = 686, type = "ability", requiresTarget = true}, -- Shadow Bolt" & @CRLF & _
" { spell = 698, type = "ability"}, -- Ritual of Summoning" & @CRLF & _
" { spell = 702, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "ability", requiresTarget = true, debuff = true}, -- Banish" & @CRLF & _
" { spell = 755, type = "ability"}, -- Health Funnel" & @CRLF & _
" { spell = 1098, type = "ability"}, -- Subjugate Demon" & @CRLF & _
" { spell = 1714, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Tongues" & @CRLF & _
" { spell = 3716, type = "ability", requiresTarget = true}, -- Consuming Shadows" & @CRLF & _
" { spell = 5484, type = "ability", debuff = true, talent = 15}, -- Howl of Terror" & @CRLF & _
" { spell = 5782, type = "ability", requiresTarget = true, debuff = true}, -- Fear" & @CRLF & _
" { spell = 6358, type = "ability", requiresTarget = true}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "ability", requiresTarget = true}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "ability", requiresTarget = true, talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 7814, type = "ability", requiresTarget = true}, -- Lash of Pain" & @CRLF & _
" { spell = 7870, type = "ability"}, -- Lesser Invisibility" & @CRLF & _
" { spell = 17735, type = "ability", requiresTarget = true, debuff = true}, -- Suffering" & @CRLF & _
" { spell = 17767, type = "ability"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 19505, type = "ability", requiresTarget = true}, -- Devour Magic" & @CRLF & _
" { spell = 19647, type = "ability", requiresTarget = true}, -- Spell Lock" & @CRLF & _
" { spell = 20707, type = "ability"}, -- Soulstone" & @CRLF & _
" { spell = 29893, type = "ability"}, -- Create Soulwell" & @CRLF & _
" { spell = 30151, type = "ability", requiresTarget = true}, -- Pursuit" & @CRLF & _
" { spell = 30213, type = "ability", requiresTarget = true}, -- Legion Strike" & @CRLF & _
" { spell = 30283, type = "ability"}, -- Shadowfury" & @CRLF & _
" { spell = 48018, type = "ability" }, -- Demonic Circle" & @CRLF & _
" { spell = 48020, type = "ability" }, -- Demonic Circle: Teleport" & @CRLF & _
" { spell = 54049, type = "ability", requiresTarget = true}, -- Shadow Bite" & @CRLF & _
" { spell = 89751, type = "ability"}, -- Felstorm" & @CRLF & _
" { spell = 89766, type = "ability", requiresTarget = true, debuff = true}, -- Axe Toss" & @CRLF & _
" { spell = 89792, type = "ability"}, -- Flee" & @CRLF & _
" { spell = 89808, type = "ability"}, -- Singe Magic" & @CRLF & _
" { spell = 104316, type = "ability", requiresTarget = true, overlayGlow = true}, -- Call Dreadstalkers" & @CRLF & _
" { spell = 104773, type = "ability", buff = true}, -- Unending Resolve" & @CRLF & _
" { spell = 105174, type = "ability", requiresTarget = true}, -- Hand of Gul'dan" & @CRLF & _
" { spell = 108416, type = "ability", buff = true, talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 111771, type = "ability"}, -- Demonic Gateway" & @CRLF & _
" { spell = 111898, type = "ability", requiresTarget = true, talent = 18 }, -- Grimoire: Felguard" & @CRLF & _
" { spell = 112042, type = "ability"}, -- Threatening Presence" & @CRLF & _
" { spell = 119898, type = "ability" }, -- Command Demon" & @CRLF & _
" { spell = 196277, type = "ability" }, -- Implosion" & @CRLF & _
" { spell = 234153, type = "ability", requiresTarget = true }, -- Drain Life" & @CRLF & _
" { spell = 264057, type = "ability", requiresTarget = true, talent = 11 }, -- Soul Strike" & @CRLF & _
" { spell = 264119, type = "ability", talent = 12 }, -- Summon Vilefiend" & @CRLF & _
" { spell = 264130, type = "ability", usable = true, talent = 5 }, -- Power Siphon" & @CRLF & _
" { spell = 264178, type = "ability", requiresTarget = true, overlayGlow = true}, -- Demonbolt" & @CRLF & _
" { spell = 264993, type = "ability"}, -- Shadow Shield" & @CRLF & _
" { spell = 265187, type = "ability"}, -- Summon Demonic Tyrant" & @CRLF & _
" { spell = 265412, type = "ability", requiresTarget = true, debuff = true, talent = 6}, -- Doom" & @CRLF & _
" { spell = 267171, type = "ability", requiresTarget = true, talent = 3 }, -- Demonic Strength" & @CRLF & _
" { spell = 267211, type = "ability", talent = 2 }, -- Bilescourge Bombers" & @CRLF & _
" { spell = 267217, type = "ability", buff = true, talent = 21 }, -- Nether Portal" & @CRLF & _
" { spell = 333889, type = "ability" }, -- Fel Domination" & @CRLF & _
" { spell = 334275, type = "ability", debuff = true }, -- Curse of Exhaustion" & @CRLF & _
" { spell = 342601, type = "ability" }, -- Ritual of Doom" & @CRLF & _
" }," & @CRLF & _
" icon = 1378282" & @CRLF & _
" }," & @CRLF & _
" [4] = {}," & @CRLF & _
" [5] = {}," & @CRLF & _
" [6] = {}," & @CRLF & _
" [7] = {" & @CRLF & _
" title = L["PvP Talents"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 199954, type="ability", debuff = true, pvptalent = 3, titleSuffix = L["cooldown"]},-- Bane of Fragility" & @CRLF & _
" { spell = 199954, type="debuff", unit = "target", pvptalent = 3, titleSuffix = L["debuff"]},-- Bane of Fragility" & @CRLF & _
" { spell = 201996, type="ability", pvptalent = 9},-- Call Observer" & @CRLF & _
" { spell = 212295, type="ability", pvptalent = 12, titleSuffix = L["cooldown"]},-- Nether Ward" & @CRLF & _
" { spell = 212295, type="buff", unit = "player", pvptalent = 12, titleSuffix = L["buff"]},-- Nether Ward" & @CRLF & _
" { spell = 212459, type="ability", pvptalent = 2},-- Call Fel Lord" & @CRLF & _
" { spell = 212619, type="ability", pvptalent = 6},-- Call Felhunter" & @CRLF & _
" { spell = 212623, type="ability", pvptalent = 7},-- Singe Magic" & @CRLF & _
" { spell = 221703, type="ability", pvptalent = 10, titleSuffix = L["cooldown"]},-- Casting Circle" & @CRLF & _
" { spell = 221705, type="buff", unit = "target", pvptalent = 10, titleSuffix = L["buff"]},-- Casting Circle" & @CRLF & _
" { spell = 221715, type="debuff", unit = "target", pvptalent = 11},-- Essence Drain" & @CRLF & _
" { spell = 328774, type="ability", buff = true, pvptalent = 8},-- Amplify Curse" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\Achievement_BG_winWSG"," & @CRLF & _
" }," & @CRLF & _
" [8] = {" & @CRLF & _
" title = L["Resources"]," & @CRLF & _
" args = {" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\inv_misc_gem_amethyst_02"," & @CRLF & _
" }," & @CRLF & _
" }," & @CRLF & _
" [3] = { -- Destruction" & @CRLF & _
" [1] = {" & @CRLF & _
" title = L["Buffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "buff", unit = "player"}, -- Eye of Kilrogg" & @CRLF & _
" { spell = 755, type = "buff", unit = "pet"}, -- Health Funnel" & @CRLF & _
" { spell = 5697, type = "buff", unit = "player"}, -- Unending Breath" & @CRLF & _
" { spell = 7870, type = "buff", unit = "pet"}, -- Lesser Invisibility" & @CRLF & _
" { spell = 17767, type = "buff", unit = "pet"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 20707, type = "buff", unit = "group"}, -- Soulstone" & @CRLF & _
" { spell = 48018, type = "buff", unit = "player"}, -- Demonic Circle" & @CRLF & _
" { spell = 104773, type = "buff", unit = "player"}, -- Unending Resolve" & @CRLF & _
" { spell = 108366, type = "buff", unit = "player"}, -- Soul Leech" & @CRLF & _
" { spell = 108366, type = "buff", unit = "pet"}, -- Soul Leech" & @CRLF & _
" { spell = 108416, type = "buff", unit = "player", talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 111400, type = "buff", unit = "player", talent = 8 }, -- Burning Rush" & @CRLF & _
" { spell = 112042, type = "buff", unit = "pet"}, -- Threatening Presence" & @CRLF & _
" { spell = 113858, type = "buff", unit = "player", talent = 21 }, -- Dark Soul: Instability" & @CRLF & _
" { spell = 117828, type = "buff", unit = "player"}, -- Backdraft" & @CRLF & _
" { spell = 196099, type = "buff", unit = "player", talent = 18 }, -- Grimoire of Sacrifice" & @CRLF & _
" { spell = 266030, type = "buff", unit = "player", talent = 4 }, -- Reverse Entropy" & @CRLF & _
" }," & @CRLF & _
" icon = 136150" & @CRLF & _
" }," & @CRLF & _
" [2] = {" & @CRLF & _
" title = L["Debuffs"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 172, type = "debuff", unit = "target"}, -- Coruption" & @CRLF & _
" { spell = 348, type = "debuff", unit = "target"}, -- Immolate" & @CRLF & _
" { spell = 702, type = "debuff", unit = "target"}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "debuff", unit = "multi"}, -- Banish" & @CRLF & _
" { spell = 1714, type = "debuff", unit = "target"}, -- Curse of Tongues" & @CRLF & _
" { spell = 1098, type = "debuff", unit = "multi"}, -- Enslave Demon" & @CRLF & _
" { spell = 5782, type = "debuff", unit = "target"}, -- Fear" & @CRLF & _
" { spell = 6358, type = "debuff", unit = "target"}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "debuff", unit = "target"}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "debuff", unit = "target", talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 17735, type = "debuff", unit = "target"}, -- Suffering" & @CRLF & _
" { spell = 22703, type = "debuff", unit = "target"}, -- Infernal Awakening" & @CRLF & _
" { spell = 30283, type = "debuff", unit = "target"}, -- Shadowfury" & @CRLF & _
" { spell = 80240, type = "debuff", unit = "target"}, -- Havoc" & @CRLF & _
" { spell = 118699, type = "debuff", unit = "target"}, -- Fear" & @CRLF & _
" { spell = 157736, type = "debuff", unit = "target"}, -- Immolate" & @CRLF & _
" { spell = 196414, type = "debuff", unit = "target", talent = 2 }, -- Eradication" & @CRLF & _
" { spell = 234153, type = "debuff", unit = "target"}, -- Drain Life" & @CRLF & _
" { spell = 265931, type = "debuff", unit = "target"}, -- Conflagrate" & @CRLF & _
" { spell = 334275, type = "debuff", unit = "target"}, -- Curse of Exhaustion" & @CRLF & _
" }," & @CRLF & _
" icon = 135817" & @CRLF & _
" }," & @CRLF & _
" [3] = {" & @CRLF & _
" title = L["Abilities"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 126, type = "ability"}, -- Eye of Kilrogg" & @CRLF & _
" { spell = 172, type = "ability", requiresTarget = true, debuff = true}, -- Corruption" & @CRLF & _
" { spell = 348, type = "ability", requiresTarget = true, debuff = true}, -- Immolate" & @CRLF & _
" { spell = 686, type = "ability"}, -- Incinerate" & @CRLF & _
" { spell = 698, type = "ability"}, -- Ritual of Summoning" & @CRLF & _
" { spell = 702, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Weakness" & @CRLF & _
" { spell = 710, type = "ability", requiresTarget = true, debuff = true}, -- Banish" & @CRLF & _
" { spell = 1098, type = "ability"}, -- Subjugate Demon" & @CRLF & _
" { spell = 1122, type = "ability", duration = 30}, -- Summon Infernal" & @CRLF & _
" { spell = 1714, type = "ability", requiresTarget = true, debuff = true}, -- Curse of Tongues" & @CRLF & _
" { spell = 3110, type = "ability", requiresTarget = true}, -- Firebolt" & @CRLF & _
" { spell = 3716, type = "ability", requiresTarget = true}, -- Consuming Shadows" & @CRLF & _
" { spell = 5484, type = "ability"}, -- Howl of Terror" & @CRLF & _
" { spell = 5740, type = "ability"}, -- Rain of Fire" & @CRLF & _
" { spell = 5782, type = "ability", requiresTarget = true, debuff = true}, -- Fear" & @CRLF & _
" { spell = 6353, type = "ability", talent = 3 }, -- Soul Fire" & @CRLF & _
" { spell = 6358, type = "ability", requiresTarget = true}, -- Seduction" & @CRLF & _
" { spell = 6360, type = "ability", requiresTarget = true}, -- Whiplash" & @CRLF & _
" { spell = 6789, type = "ability", requiresTarget = true, talent = 14 }, -- Mortal Coil" & @CRLF & _
" { spell = 7814, type = "ability", requiresTarget = true}, -- Lash of Pain" & @CRLF & _
" { spell = 7870, type = "ability"}, -- Lesser Invisibility" & @CRLF & _
" { spell = 17735, type = "ability", requiresTarget = true, debuff = true}, -- Suffering" & @CRLF & _
" { spell = 17767, type = "ability"}, -- Shadow Bulwark" & @CRLF & _
" { spell = 17877, type = "ability", requiresTarget = true, charges = true, talent = 6 }, -- Shadowburn" & @CRLF & _
" { spell = 17962, type = "ability", requiresTarget = true, charges = true}, -- Conflagrate" & @CRLF & _
" { spell = 19647, type = "ability", requiresTarget = true}, -- Spell Lock" & @CRLF & _
" { spell = 20707, type = "ability"}, -- Soulstone" & @CRLF & _
" { spell = 29722, type = "ability", requiresTarget = true}, -- Incinerate" & @CRLF & _
" { spell = 29893, type = "ability"}, -- Create Soulwell" & @CRLF & _
" { spell = 30283, type = "ability"}, -- Shadowfury" & @CRLF & _
" { spell = 48018, type = "ability"}, -- Demonic Circle" & @CRLF & _
" { spell = 48020, type = "ability"}, -- Demonic Circle: Teleport" & @CRLF & _
" { spell = 54049, type = "ability", requiresTarget = true}, -- Shadow Bite" & @CRLF & _
" { spell = 80240, type = "ability", requiresTarget = true, debuff = true}, -- Havoc" & @CRLF & _
" { spell = 89792, type = "ability"}, -- Flee" & @CRLF & _
" { spell = 89808, type = "ability"}, -- Singe Magic" & @CRLF & _
" { spell = 104773, type = "ability", buff = true}, -- Unending Resolve" & @CRLF & _
" { spell = 108416, type = "ability", buff = true, talent = 9 }, -- Dark Pact" & @CRLF & _
" { spell = 108503, type = "ability", talent = 18 }, -- Grimoire of Sacrifice" & @CRLF & _
" { spell = 111771, type = "ability"}, -- Demonic Gateway" & @CRLF & _
" { spell = 112042, type = "ability"}, -- Threatening Presence" & @CRLF & _
" { spell = 113858, type = "ability", buff = true, talent = 21 }, -- Dark Soul: Instability" & @CRLF & _
" { spell = 116858, type = "ability" }, -- Chaos Bolt" & @CRLF & _
" { spell = 119898, type = "ability" }, -- Dark Command Demon" & @CRLF & _
" { spell = 152108, type = "ability", talent = 12 }, -- Cataclysm" & @CRLF & _
" { spell = 116858, type = "ability", requiresTarget = true}, -- Chaos Bolt" & @CRLF & _
" { spell = 196447, type = "ability", usable = true, talent = 20 }, -- Channel Demonfire" & @CRLF & _
" { spell = 234153, type = "ability", requiresTarget = true}, -- Drain Life" & @CRLF & _
" { spell = 264993, type = "ability"}, -- Shadow Shield" & @CRLF & _
" { spell = 333889, type = "ability" }, -- Fel Domination" & @CRLF & _
" { spell = 334275, type = "ability", debuff = true, requiresTarget = true }, -- Curse of Exhaustion" & @CRLF & _
" }," & @CRLF & _
" icon = 135807" & @CRLF & _
" }," & @CRLF & _
" [4] = {}," & @CRLF & _
" [5] = {}," & @CRLF & _
" [6] = {}," & @CRLF & _
" [7] = {" & @CRLF & _
" title = L["PvP Talents"]," & @CRLF & _
" args = {" & @CRLF & _
" { spell = 199954, type="ability", debuff = true, pvptalent = 4, titleSuffix = L["cooldown"]},-- Bane of Fragility" & @CRLF & _
" { spell = 199954, type="debuff", unit = "target", pvptalent = 4, titleSuffix = L["debuff"]},-- Bane of Fragility" & @CRLF & _
" { spell = 200546, type="ability", pvptalent = 5, titleSuffix = L["cooldown"]},-- Bane of Havoc" & @CRLF & _
" { spell = 200548, type="debuff", unit = "target", pvptalent = 5, titleSuffix = L["debuff"]},-- Bane of Havoc" & @CRLF & _
" { spell = 200587, type="debuff", unit = "target", pvptalent = 10},-- Fel Fissure" & @CRLF & _
" { spell = 212295, type="ability", pvptalent = 6, titleSuffix = L["cooldown"]},-- Nether Ward" & @CRLF & _
" { spell = 212295, type="buff", unit = "player", pvptalent = 6, titleSuffix = L["buff"]},-- Nether Ward" & @CRLF & _
" { spell = 221703, type="ability", pvptalent = 8, titleSuffix = L["cooldown"]},-- Casting Circle" & @CRLF & _
" { spell = 221705, type="buff", unit = "target", pvptalent = 8, titleSuffix = L["buff"]},-- Casting Circle" & @CRLF & _
" { spell = 221715, type="debuff", unit = "target", pvptalent = 7},-- Essence Drain" & @CRLF & _
" { spell = 285933, type="buff", unit = "target", pvptalent = 2},-- Demon Armor" & @CRLF & _
" { spell = 328774, type="ability", buff = true, pvptalent = 3},-- Amplify Curse" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\Achievement_BG_winWSG"," & @CRLF & _
" }," & @CRLF & _
" [8] = {" & @CRLF & _
" title = L["Resources"]," & @CRLF & _
" args = {" & @CRLF & _
" }," & @CRLF & _
" icon = "Interface\\Icons\\inv_misc_gem_amethyst_02"," & @CRLF & _
" }," & @CRLF & _
" }," & @CRLF & _
" }" & @CRLF & _
""
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH)
Local $aFullArray[0]
For $i = 0 To UBound($aArray) -1
_ArrayConcatenate($aFullArray, $aArray[$i])
Next
$aArray = $aFullArray
; Present the entire match result
_ArrayDisplay($aArray, "Result")
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm