I have a scenario in which I need to trim the cells in csv, but I need to retain the spaces in between the text and should not trim the text in quotes but trim the spaces around quotes like other cells.
example:
 -->     first one, secondone ,  " third one "  , fourth one  
Should be
 -->first one,secondone,"third one",fourth one
I have followed this link which partially answers my question but it removes spaces in between words too. I have done some work on this item but not successful.Please assist in getting this resolved. Also when I tried to apply the answer posted in the link ( which is aimed to c#) I got warning stating not all browsers will support "negative lookbehind". Is there any alternative regex to achieve this ?