From: Fabian Streitel Date: 2009-07-04T01:40:21+09:00 Subject: Re: Parsing lua with Ruby --0015174c0f12abd38d046dcfcf92 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit dunno if that'll be any help, but it looks pretty simmilar to YAML, here's a little regex magic to convert it to valid yaml: http://pastie.org/533386 beware though, that will only work if (a) the whole file equally well formatted (i.e. no trailing spaces at the end of lines, no extra spaces between "foo" = "bar" etc.) (b) you don't need that " -- [1]" stuff at the end of some of the lines (i didn't know what that was for) (c) indentation is the same for the whole file (d) you don't mind that everything is in arrays, even stuff with only one entry Point (a) is pretty relative, the regexps can be easily adjusted to allow any amount of spaces between the different parts and at end of lines. Disclaimer: I haven't tested this thoroughly, just ran it over your snippet. No guarantees it'll work with your whole file... Greetz, k --0015174c0f12abd38d046dcfcf92--