View Single Post
01-12-19, 12:50 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
As for finding valid and invalid (turns out I need both, but need to know the difference) this might work:
Code:
local valid = true
for w in string.gmatch(text_store, "%d+") do
    if string.gmatch(w, "i:%d+") then
        valid = true
    else
        valid = false
        break -- we only need to find one incorrect itemID. no point in continuing
    end
end
  Reply With Quote