lua-users home
lua-l archive

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

I was going to say the "[^;]+" pattern won't work but seems you've corrected that since 5.0.2. :)

Another detail: does this mean we can reassign the loop var in future Lua? ("for c", then "c=")


17.9.2004 kello 19:49, Roberto Ierusalimschy kirjoitti:

 local function search (path, name)
  for c in string.gfind(path, "[^;]+") do
    c = string.gsub(c, "%?", name)