15 Dec
2012
15 Dec
'12
12:12 a.m.
Hi! I have to use pattern matching in lua. I tried the function "string.gmatch". I want to match (iterate over) strings of the type ([0-9]+)(-([0-9]*))?(,|$) For example: 1,3- (iterations: 1 and 3-) 1-3,6,7 (iterations: 1-3 then 6 then 7) 1-2,5-6,10- (iterations 1-2 then 5-6 then 10-) André Caldas.