WoWInterface - View Single Post - string.gsub() and regular expression
View Single Post
01-24-21, 04:15 PM   #2
A Warpwood Thunder Caller
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 92
back in legion, this is how I got the numbers, and only the numbers, out of the artifact power item tooltips without seperators. You can modify this to do what you want (I would guess).

appower = string.match(_G[self:GetName().."TextLeft"..i]:GetText(), "%d+%,?%.?%s?%d*");						
appower = string.gsub(string.gsub(appower, "%,", ""), "%.", "");
My Addons: Convert Ratings Honor Track
  Reply With Quote