Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Lua] Capturing all captures

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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List