Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\[3\] = {[\s]+title = [^\n]+[\s]+args = {\n(([\s]*{[^\n]+\n)*)[\s]*},[\s]+icon = [\d]+[\s]+},
/
gm
Input 1
[1] = { -- Affliction [1] = { title = L["Buffs"], args = { { spell = 126, type = "buff", unit = "player"}, -- Eye of Kilrogg { spell = 755, type = "buff", unit = "pet"}, -- Health Funnel { spell = 5697, type = "buff", unit = "player"}, -- Unending Breath { spell = 7870, type = "buff", unit = "pet"}, -- Lesser Invisibility { spell = 17767, type = "buff", unit = "pet"}, -- Shadow Bulwark { spell = 20707, type = "buff", unit = "group"}, -- Soulstone { spell = 48018, type = "buff", unit = "player"}, -- Demonic Circle { spell = 104773, type = "buff", unit = "player"}, -- Unending Resolve { spell = 108366, type = "buff", unit = "player"}, -- Soul Leech { spell = 108416, type = "buff", unit = "player", talent = 9 }, -- Dark Pact { spell = 112042, type = "buff", unit = "pet"}, -- Threatening Presence { spell = 113860, type = "buff", unit = "player",
Substitution
[1] = { -- Affliction [1] = { title = L["Buffs"], args = { { spell = 126, type = "buff", unit = "player"}, -- Eye of Kilrogg { spell = 755, type = "buff", unit = "pet"}, -- Health Funnel { spell = 5697, type = "buff", unit = "player"}, -- Unending Breath { spell = 7870, type = "buff", unit = "pet"}, -- Lesser Invisibility { spell = 17767, type = "buff", unit = "pet"}, -- Shadow Bulwark { spell = 20707, type = "buff", unit = "group"}, -- Soulstone { spell = 48018, type = "buff", unit = "player"}, -- Demonic Circle { spell = 104773, type = "buff", unit = "player"}, -- Unending Resolve { spell = 108366, type = "buff", unit = "player"}, -- Soul Leech { spell = 108416, type = "buff", unit = "player", talent = 9 }, -- Dark Pact { spell = 112042, type = "buff", unit = "pet"}, -- Threatening Presence { spell = 113860, type = "buff", unit = "player",