lua-users home
lua-l archive

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


There are a lot of examples on splitting a string on the net.
What I'm looking for is the ability to include the delimiter in the strings.

The following desirable example with '\' as the escape character:

````
'foo','bar','foo,bar' = split('foo,bar,foo\\,bar' , ',')
````
--
Minh Ngo