I need to remove all white space only within quoted sections of a string.
Give this:
10 00,400,"a1 b2 c3 ",zz xx,100
I need this:
10 00,400,"a1b2c3",zz xx,100
Obviously, restricting it to quoted areas only is why I’m having trouble.
The strings will vary in length and can have multiple quoted sections.
Assuming that the quotes are balanced, then you could implement a method like this:
This prints: