split Build Status Coverage

Synopsis

A string split function and iterator for Lua since Lua’s standard sting library doesn’t provide such a function. When working with text split is very useful, and many people have written a version for Lua.

Usage

Varia

The module provides four informational functions that return strings. They should be self-explanatory.

Credits

Many of my ideas came from reading the LuaWiki page on split. I thank all those contributors for their suggestions and examples.

Alexey Melnichuk, AKA moteus provided the idea and initial code for first_and_rest.

All mistakes are mine. See version history for release details.


© 2012-2018 Peter Aronoff. BSD 3-Clause license; see the license for details.