lua-users home
lua-l archive

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


Thanks to everyone for their help. I have two more questions:

1. What books can the list recommend for Lua programming that are simple to understand

2. I read the doco on concatenation at:
http://www.lua.org/pil/3.4.html

but am getting an error when I try:

local parm2value = "test"
local combined = "http://domain/?parm=/path/to/&parm2=" .. parm2value

how do on concatenate two value into one parameter?

Thanks
 Chris

On Thu, Jul 22, 2010 at 7:56 PM, Shmuel Zeigerman <shmuz@013net.net> wrote:
Luiz Henrique de Figueiredo wrote:
If you don't know the tag name, you can use
       local n,c = string.match(text,"<(%w+)>(.-)</%1>")

Yes, certainly. (I just wanted to give a simple answer to the original's poster's question).

--
Shmuel