The problem is i want to comment out a specific string in some files.
In most of them it looks like this
countries = {"GER","NZG",} Replacing this is trivial. However there are some exception in which the string looks like this:
countries = { "GER","NZG", } I replaced the first line in the first run through by replacing "countries" with "--countries".
Now I found the next row with
^([\s][\"][A-Z]{3}[\"]) and Replaced it by
-- \1 Now my files look like this
--countries = { -- "GER","NZG", } I know this is not very efficent.
As you can see, I need to comment out the last "}". It is the last "}" in every file. But there are other single "}" in one rows.
These are lua files so maybe block commenting would be better. Still i don't know how to find the last "}" in the file.
Would be nice if someone could help me with that.
