lua-users home
lua-l archive

Re: Convert a string to table without changing the order of the items

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


> I need to convert this to a table but the order of the data must stay the same.
Try	s:gsub('%["(%w+)"%]="(.-)",',print)
Replace print with a suitable function.
If the data file has more than one table, it'll take a little more work.

AltStyle によって変換されたページ (->オリジナル) /