lua-users home
lua-l archive

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

On Tue, Dec 29, 2009 at 10:04 AM, steve donovan
<> wrote:
> Lua is unique in that all string searching/substitution functions use
> patterns, not literals.

Which suggests that split (like string.find) should have another
argument to force a plain search.  Tradition suggests that the second
argument should be an optional number-of-separators limit to extract,
so it would have to be the third arg, with some value for 'limit'
chosen to mean 'no limit':

split('','.',-1,true) -> {'127','0','0','1'}

steve d.