WoW:ItemLink: Difference between revisions

1 byte removed ,  15 June 2007
m
→‎itemLink API Type (String): minor rewording: LUA-code -> pattern. LUA-code is ugly IMO, not to mention that all caps LUA is wrong.
m (minor fix in itemString extraction reg expr)
m (→‎itemLink API Type (String): minor rewording: LUA-code -> pattern. LUA-code is ugly IMO, not to mention that all caps LUA is wrong.)
Line 22: Line 22:




You can extract the itemString from a given itemLink with the following LUA-code:
You can extract the itemString from a given itemLink with the following pattern:


  local found, _, itemString = string.find(itemLink, "^|c%x+|H(.+)|h%[.+%]")
  local found, _, itemString = string.find(itemLink, "^|c%x+|H(.+)|h%[.+%]")
Anonymous user