lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I almost forgot: if you need the whole string, you need to explicitly ask for it:

local _,_,all,path,file = string.find("^((/var/www/)(.*))", "/var/www/files/index.php")


If you need more info about the syntax, or anything else, check out the docs:

http://www.lua.org/manual/5.0/manual.html#5.3 (string library section)

--rb