[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: regexp in lua
- From: Romulo Bahiense <romulo@...>
- Date: Tue, 02 Aug 2005 10:28:43 -0300
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