
Originally Posted by
Raziol
hey,
any chance in changing names with regEx in Notepad++?
i'm struggling with it now and can't change from "name item" to "Name Item"
execute this script in any Lua compiler:
Code:
local items = [=[
761 - flash arrow
762 - shiver arrow
763 - flaming arrow
774 - earth arrow
3446 - bolt
3447 - arrow
3448 - poison arrow
3449 - burst arrow
3450 - power bolt
6528 - infernal bolt
7363 - piercing bolt
7364 - sniper arrow
7365 - onyx arrow
14251 - tarsal arrow
14252 - vortex bolt
15793 - crystalline arrow
16141 - prismatic bolt
16142 - drill bolt
16143 - envenomed arrow
]=]
for id, name in items:gmatch("(%d+) %- (.-)\n") do
print(id .. " - " ..
(
name:gsub("[^ ]+",
function(word)
return word:sub(1, 1):upper() .. word:sub(2)
end
)
)
)
end
generated output:
Code:
761 - Flash Arrow
762 - Shiver Arrow
763 - Flaming Arrow
774 - Earth Arrow
3446 - Bolt
3447 - Arrow
3448 - Poison Arrow
3449 - Burst Arrow
3450 - Power Bolt
6528 - Infernal Bolt
7363 - Piercing Bolt
7364 - Sniper Arrow
7365 - Onyx Arrow
14251 - Tarsal Arrow
14252 - Vortex Bolt
15793 - Crystalline Arrow
16141 - Prismatic Bolt
16142 - Drill Bolt
16143 - Envenomed Arrow
just replace the 'items' string for the item list you want.
I don't know if xeno supports Lua print function. Anyway, you can also execute this script in www.ideone.com