Name: Anonymous 2006-11-26 22:36
Quick q. How did I get table w/ all captures from string.match() ?
Currently I use something like this:
c1, c2, c3 = string.match(s, pattern)
captures = { ["\\1"] = c1, ["\\2"] = c2, ["\\3"] = c3 }
Obviously, this is not how it should be.
Currently I use something like this:
c1, c2, c3 = string.match(s, pattern)
captures = { ["\\1"] = c1, ["\\2"] = c2, ["\\3"] = c3 }
Obviously, this is not how it should be.