I want the following spaces within the quotes to be stripped out, but only the spaces that are contiguous before and after a quote within matching quotes.
this is " a " quoted "string " with " lots" of "edge " cases " that " need spaces removed. It \" also \" has "escaped" quotes just to really annoy you!
It should look like...
this is "a" quoted "string" with "lots" of "edge" cases "that" need spaces removed. It \"also\" has "escaped" quotes just to really annoy you!
I's this even possible in a single regex? If not then any solution will do.