I'm messing around with regular expressions and I can't seem to figure out how to parse this file.
It's basically a lua file containing a table like:
Some things with the file are standard, like the "TableName" (Never in quotes) starts the table. Variables always have [" "] around them and then equal something like ["Test"] = 0. However, the variable could have multiple variables within it.Code:TableName = { ["QuotedString"] = { ["QuotedString"] = { ["QuotedString-Key"] = 1, ["QuotedString-Key"] = 0, ["QuotedString-Key"] = 0, }, ["QuotedString"] = { ["QuotedString-Key"] = 1, ["QuotedString-Key"] = 0, ["QuotedString-Key"] = 0, }, }, ["QuotedString-Key"] = true, ["QuotedString-Key"] = true, }
My orginal idea was to split up the file within each {} and then try to parse each ["QuotedString-Key"] = 0
My question is, how can I do this?




Reply With Quote