in reply to regex match only outside the double quotes

First extract the quoted groups (with something like Text::CSV or Text::Balanced or even a regex), then look in the remainder for a --.

That's going to be much easier than finding a "one size fits all" regex.

Perl 6 projects - links to (nearly) everything that is Perl 6.