in reply to Nth match.

Use a module like Text::xSV or Text::CSV_XS. They'll handle the quotes for you.