A regex line to remove whitespaces unless within double quotes, taking into account escaped double quotes
I am parsing some game config files using Python and putting it all in dictionaries. It seemed to all work well until I encountered the following edge-case: