Quantcast
WoWInterface - View Single Post - Pattern matching is my Kryptonite!
View Single Post
01-12-19, 11:51 AM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,124
Would the following work, or does this need to be more complex?
Code:
local valid = string.gmatch(myString, "i:%d+$")
if not valid then
    myString = string.gsub(myString, ",", ",i:")
    myString = "i:" .. myString
end
  Reply With Quote