Quantcast
WoWInterface - View Single Post - Pattern matching is my Kryptonite!
View Single Post
01-12-19, 01:50 PM   #6
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,124
Originally Posted by krowbar71 View Post
How about making everything wrong and fixing it all:

Code:
s = "I:1234,3450,i:9867"
s1 = string.gsub(string.gsub(s, "[iI]:", ""), "(%d+)", "i:%1")
print(s1)
i:1234,i:3450,i:9867
Damn...
  Reply With Quote