lua-users home
lua-l archive

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


How hard would it be to convert the existing string matching features for use with tables?

E.g.

table.find({"hello", "world"}, {"world"}, 1, true) --> 2
table.match({"hello", "cruel", "world"}, {table.caret, table.percent.b, "hello", "world", table.dollar}) --> {"hello", "cruel", "world"} table.gsub({"a", "world"}, {table.percent.A}, {"bad", "place"}) --> {"a", "bad", "place"}, 1