s/("[^"]*")|^--.*\n|(--).*/$1||$2||""/egm; [download]
In reply to Re: regex match only outside the double quotes by JavaFan in thread regex match only outside the double quotes by hifirock