LuaNET, the lua 5.1 api documentation!

Lua-Api

String

[LUA 5.1] string.match

function string.match ( s, pattern, init )
Looks for the first match of pattern in the string s.
If it finds one, then match returns the captures from the pattern; otherwise it returns nil.
If pattern specifies no captures, then the whole match is returned.
A third, optional numerical argument init specifies where to start the search; its default value is 1 and may be negative.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.223 seconds with 19 queries.