WoWInterface - View Single Post - Pattern matching
View Single Post
10-22-19, 12:08 PM   #2
A Molten Giant
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 531
local _, _, itemID = strsplit(":", line)

This will split the message string by colons, making the item ID the third return in this message string. It gives you a string, so if you want a number:

itemID = tonumber(itemID)
  Reply With Quote