lua-users home
lua-l archive

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


2016-05-06 17:46 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:

> - new semantics for empty matches ("Python rule")

Thank you! "split" is now easy. After eight years :-)

Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
> for k in ("a,,b,c"):gmatch"[^,]*" do print(k) end
a

b
c
>

[1] http://lua-users.org/lists/lua-l/2008-02/msg01191.html