There we go again. RegEx. The most mysterious thing on this planet.
I have lots of LUA tables as .lua files
local tbl = {
SomeObject = {
Key = "Value",
AnotherKey = {
Key1 = "Value 1",
Key2 = "Value 2",
Key3 = "Value 3",
}
},
AnotherObject = {
Key = "Value",
AnotherKey = {
Key1 = "Value 1",
Key2 = "Value 2",
Key3 = "Value 3",
}
}
}
I would like to convert these files to JSON so they can be used more easily across different applications. Is there any fancy RegEx I could use in C# e.g. to convert them?