Regular expression for removing white spaces but not those inside ""

Posted by kirill_l on Stack Overflow See other posts from Stack Overflow or by kirill_l
Published on 2010-06-08T14:06:07Z Indexed on 2010/06/08 14:12 UTC
Read the original article Hit count: 247

Filed under:

I have the following input string:

key1 = "test string1" ; key2 = "test string 2"

I need to convert it to the following without tokenizing

key1="test string1";key2="test string 2"

© Stack Overflow or respective owner

Related posts about regex