I am working with numbers a lot when editing a particular type of file, and it’s mostly tedious work. The file has a format like this:
damagebase = 8.834
"abc_foo.odf" 3.77
"def_bar.odf" 3.77
"ghi_baz.odf" 3.77
"jkl_blah.odf" 4.05
...
What would you recommend for writing a script that parses this and lets me programmatically change each number?
Language: i use C#, some F# (noob), and Lua. If you suggest regexes, could you provide specific ones as i am not familiar with them?
You can match runs of non-whitespace and punt to Double.Parse:
Running it gives