Split String

HI All,

I have a string in a database that looks like this…
cat/dog/fat/mouse/fish

I can load the string but how can I split it using the “/” as a delimiter into a table.

Thanks for any help

[import]uid: 7830 topic_id: 8631 reply_id: 308631[/import]

http://lua-users.org/wiki/SplitJoin

[import]uid: 2131 topic_id: 8631 reply_id: 30966[/import]

Use Lua’s gmatch() command:
http://developer.anscamobile.com/forum/2011/01/19/suggestions-how-parse-string-12-2312-144-1 [import]uid: 12108 topic_id: 8631 reply_id: 30974[/import]