in reply to Re: Remove Tabs and white space from a line except in Quotes
in thread Remove Tabs and white space from a line except in Quotes

EDITED: Do you know what, I made a mistake. There is still some problems with what I posted, but I didn't realize it in time. Please ignore this! Hey Again, I took what you started with, and I modified it to account for backslash quotes and came up with this:
s/[ \t]*((?:"(?:(?>[^\\"]*)).*")?)/$1/xg;
It works just the way I want it to! I don't know how efficient it is, but it does the job. My next stumper is how to incorporate single quotes in as well? Any thoughts?